updateSliderTextInput(
- session,
+ session = getDefaultReactiveDomain(),
inputId,
label = NULL,
selected = NULL,
diff --git a/search.json b/search.json
index e95ebc34..164f7581 100644
--- a/search.json
+++ b/search.json
@@ -1 +1 @@
-[{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":null,"dir":"","previous_headings":"","what":"GNU General Public License","title":"GNU General Public License","text":"Version 3, 29 June 2007Copyright © 2007 Free Software Foundation, Inc. Everyone permitted copy distribute verbatim copies license document, changing allowed.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"preamble","dir":"","previous_headings":"","what":"Preamble","title":"GNU General Public License","text":"GNU General Public License free, copyleft license software kinds works. licenses software practical works designed take away freedom share change works. contrast, GNU General Public License intended guarantee freedom share change versions program–make sure remains free software users. , Free Software Foundation, use GNU General Public License software; applies also work released way authors. can apply programs, . speak free software, referring freedom, price. General Public Licenses designed make sure freedom distribute copies free software (charge wish), receive source code can get want , can change software use pieces new free programs, know can things. protect rights, need prevent others denying rights asking surrender rights. Therefore, certain responsibilities distribute copies software, modify : responsibilities respect freedom others. example, distribute copies program, whether gratis fee, must pass recipients freedoms received. must make sure , , receive can get source code. must show terms know rights. Developers use GNU GPL protect rights two steps: (1) assert copyright software, (2) offer License giving legal permission copy, distribute /modify . developers’ authors’ protection, GPL clearly explains warranty free software. users’ authors’ sake, GPL requires modified versions marked changed, problems attributed erroneously authors previous versions. devices designed deny users access install run modified versions software inside , although manufacturer can . fundamentally incompatible aim protecting users’ freedom change software. systematic pattern abuse occurs area products individuals use, precisely unacceptable. Therefore, designed version GPL prohibit practice products. problems arise substantially domains, stand ready extend provision domains future versions GPL, needed protect freedom users. Finally, every program threatened constantly software patents. States allow patents restrict development use software general-purpose computers, , wish avoid special danger patents applied free program make effectively proprietary. prevent , GPL assures patents used render program non-free. precise terms conditions copying, distribution modification follow.","code":""},{"path":[]},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"id_0-definitions","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"0. Definitions","title":"GNU General Public License","text":"“License” refers version 3 GNU General Public License. “Copyright” also means copyright-like laws apply kinds works, semiconductor masks. “Program” refers copyrightable work licensed License. licensee addressed “”. “Licensees” “recipients” may individuals organizations. “modify” work means copy adapt part work fashion requiring copyright permission, making exact copy. resulting work called “modified version” earlier work work “based ” earlier work. “covered work” means either unmodified Program work based Program. “propagate” work means anything , without permission, make directly secondarily liable infringement applicable copyright law, except executing computer modifying private copy. Propagation includes copying, distribution (without modification), making available public, countries activities well. “convey” work means kind propagation enables parties make receive copies. Mere interaction user computer network, transfer copy, conveying. interactive user interface displays “Appropriate Legal Notices” extent includes convenient prominently visible feature (1) displays appropriate copyright notice, (2) tells user warranty work (except extent warranties provided), licensees may convey work License, view copy License. interface presents list user commands options, menu, prominent item list meets criterion.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"id_1-source-code","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"1. Source Code","title":"GNU General Public License","text":"“source code” work means preferred form work making modifications . “Object code” means non-source form work. “Standard Interface” means interface either official standard defined recognized standards body, , case interfaces specified particular programming language, one widely used among developers working language. “System Libraries” executable work include anything, work whole, () included normal form packaging Major Component, part Major Component, (b) serves enable use work Major Component, implement Standard Interface implementation available public source code form. “Major Component”, context, means major essential component (kernel, window system, ) specific operating system () executable work runs, compiler used produce work, object code interpreter used run . “Corresponding Source” work object code form means source code needed generate, install, (executable work) run object code modify work, including scripts control activities. However, include work’s System Libraries, general-purpose tools generally available free programs used unmodified performing activities part work. example, Corresponding Source includes interface definition files associated source files work, source code shared libraries dynamically linked subprograms work specifically designed require, intimate data communication control flow subprograms parts work. Corresponding Source need include anything users can regenerate automatically parts Corresponding Source. Corresponding Source work source code form work.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"id_2-basic-permissions","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"2. Basic Permissions","title":"GNU General Public License","text":"rights granted License granted term copyright Program, irrevocable provided stated conditions met. License explicitly affirms unlimited permission run unmodified Program. output running covered work covered License output, given content, constitutes covered work. License acknowledges rights fair use equivalent, provided copyright law. may make, run propagate covered works convey, without conditions long license otherwise remains force. may convey covered works others sole purpose make modifications exclusively , provide facilities running works, provided comply terms License conveying material control copyright. thus making running covered works must exclusively behalf, direction control, terms prohibit making copies copyrighted material outside relationship . Conveying circumstances permitted solely conditions stated . Sublicensing allowed; section 10 makes unnecessary.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"id_3-protecting-users-legal-rights-from-anti-circumvention-law","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"3. Protecting Users’ Legal Rights From Anti-Circumvention Law","title":"GNU General Public License","text":"covered work shall deemed part effective technological measure applicable law fulfilling obligations article 11 WIPO copyright treaty adopted 20 December 1996, similar laws prohibiting restricting circumvention measures. convey covered work, waive legal power forbid circumvention technological measures extent circumvention effected exercising rights License respect covered work, disclaim intention limit operation modification work means enforcing, work’s users, third parties’ legal rights forbid circumvention technological measures.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"id_4-conveying-verbatim-copies","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"4. Conveying Verbatim Copies","title":"GNU General Public License","text":"may convey verbatim copies Program’s source code receive , medium, provided conspicuously appropriately publish copy appropriate copyright notice; keep intact notices stating License non-permissive terms added accord section 7 apply code; keep intact notices absence warranty; give recipients copy License along Program. may charge price price copy convey, may offer support warranty protection fee.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"id_5-conveying-modified-source-versions","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"5. Conveying Modified Source Versions","title":"GNU General Public License","text":"may convey work based Program, modifications produce Program, form source code terms section 4, provided also meet conditions: ) work must carry prominent notices stating modified , giving relevant date. b) work must carry prominent notices stating released License conditions added section 7. requirement modifies requirement section 4 “keep intact notices”. c) must license entire work, whole, License anyone comes possession copy. License therefore apply, along applicable section 7 additional terms, whole work, parts, regardless packaged. License gives permission license work way, invalidate permission separately received . d) work interactive user interfaces, must display Appropriate Legal Notices; however, Program interactive interfaces display Appropriate Legal Notices, work need make . compilation covered work separate independent works, nature extensions covered work, combined form larger program, volume storage distribution medium, called “aggregate” compilation resulting copyright used limit access legal rights compilation’s users beyond individual works permit. Inclusion covered work aggregate cause License apply parts aggregate.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"id_6-conveying-non-source-forms","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"6. Conveying Non-Source Forms","title":"GNU General Public License","text":"may convey covered work object code form terms sections 4 5, provided also convey machine-readable Corresponding Source terms License, one ways: ) Convey object code , embodied , physical product (including physical distribution medium), accompanied Corresponding Source fixed durable physical medium customarily used software interchange. b) Convey object code , embodied , physical product (including physical distribution medium), accompanied written offer, valid least three years valid long offer spare parts customer support product model, give anyone possesses object code either (1) copy Corresponding Source software product covered License, durable physical medium customarily used software interchange, price reasonable cost physically performing conveying source, (2) access copy Corresponding Source network server charge. c) Convey individual copies object code copy written offer provide Corresponding Source. alternative allowed occasionally noncommercially, received object code offer, accord subsection 6b. d) Convey object code offering access designated place (gratis charge), offer equivalent access Corresponding Source way place charge. need require recipients copy Corresponding Source along object code. place copy object code network server, Corresponding Source may different server (operated third party) supports equivalent copying facilities, provided maintain clear directions next object code saying find Corresponding Source. Regardless server hosts Corresponding Source, remain obligated ensure available long needed satisfy requirements. e) Convey object code using peer--peer transmission, provided inform peers object code Corresponding Source work offered general public charge subsection 6d. separable portion object code, whose source code excluded Corresponding Source System Library, need included conveying object code work. “User Product” either (1) “consumer product”, means tangible personal property normally used personal, family, household purposes, (2) anything designed sold incorporation dwelling. determining whether product consumer product, doubtful cases shall resolved favor coverage. particular product received particular user, “normally used” refers typical common use class product, regardless status particular user way particular user actually uses, expects expected use, product. product consumer product regardless whether product substantial commercial, industrial non-consumer uses, unless uses represent significant mode use product. “Installation Information” User Product means methods, procedures, authorization keys, information required install execute modified versions covered work User Product modified version Corresponding Source. information must suffice ensure continued functioning modified object code case prevented interfered solely modification made. convey object code work section , , specifically use , User Product, conveying occurs part transaction right possession use User Product transferred recipient perpetuity fixed term (regardless transaction characterized), Corresponding Source conveyed section must accompanied Installation Information. requirement apply neither third party retains ability install modified object code User Product (example, work installed ROM). requirement provide Installation Information include requirement continue provide support service, warranty, updates work modified installed recipient, User Product modified installed. Access network may denied modification materially adversely affects operation network violates rules protocols communication across network. Corresponding Source conveyed, Installation Information provided, accord section must format publicly documented (implementation available public source code form), must require special password key unpacking, reading copying.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"id_7-additional-terms","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"7. Additional Terms","title":"GNU General Public License","text":"“Additional permissions” terms supplement terms License making exceptions one conditions. Additional permissions applicable entire Program shall treated though included License, extent valid applicable law. additional permissions apply part Program, part may used separately permissions, entire Program remains governed License without regard additional permissions. convey copy covered work, may option remove additional permissions copy, part . (Additional permissions may written require removal certain cases modify work.) may place additional permissions material, added covered work, can give appropriate copyright permission. Notwithstanding provision License, material add covered work, may (authorized copyright holders material) supplement terms License terms: ) Disclaiming warranty limiting liability differently terms sections 15 16 License; b) Requiring preservation specified reasonable legal notices author attributions material Appropriate Legal Notices displayed works containing ; c) Prohibiting misrepresentation origin material, requiring modified versions material marked reasonable ways different original version; d) Limiting use publicity purposes names licensors authors material; e) Declining grant rights trademark law use trade names, trademarks, service marks; f) Requiring indemnification licensors authors material anyone conveys material (modified versions ) contractual assumptions liability recipient, liability contractual assumptions directly impose licensors authors. non-permissive additional terms considered “restrictions” within meaning section 10. Program received , part , contains notice stating governed License along term restriction, may remove term. license document contains restriction permits relicensing conveying License, may add covered work material governed terms license document, provided restriction survive relicensing conveying. add terms covered work accord section, must place, relevant source files, statement additional terms apply files, notice indicating find applicable terms. Additional terms, permissive non-permissive, may stated form separately written license, stated exceptions; requirements apply either way.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"id_8-termination","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"8. Termination","title":"GNU General Public License","text":"may propagate modify covered work except expressly provided License. attempt otherwise propagate modify void, automatically terminate rights License (including patent licenses granted third paragraph section 11). However, cease violation License, license particular copyright holder reinstated () provisionally, unless copyright holder explicitly finally terminates license, (b) permanently, copyright holder fails notify violation reasonable means prior 60 days cessation. Moreover, license particular copyright holder reinstated permanently copyright holder notifies violation reasonable means, first time received notice violation License (work) copyright holder, cure violation prior 30 days receipt notice. Termination rights section terminate licenses parties received copies rights License. rights terminated permanently reinstated, qualify receive new licenses material section 10.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"id_9-acceptance-not-required-for-having-copies","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"9. Acceptance Not Required for Having Copies","title":"GNU General Public License","text":"required accept License order receive run copy Program. Ancillary propagation covered work occurring solely consequence using peer--peer transmission receive copy likewise require acceptance. However, nothing License grants permission propagate modify covered work. actions infringe copyright accept License. Therefore, modifying propagating covered work, indicate acceptance License .","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"id_10-automatic-licensing-of-downstream-recipients","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"10. Automatic Licensing of Downstream Recipients","title":"GNU General Public License","text":"time convey covered work, recipient automatically receives license original licensors, run, modify propagate work, subject License. responsible enforcing compliance third parties License. “entity transaction” transaction transferring control organization, substantially assets one, subdividing organization, merging organizations. propagation covered work results entity transaction, party transaction receives copy work also receives whatever licenses work party’s predecessor interest give previous paragraph, plus right possession Corresponding Source work predecessor interest, predecessor can get reasonable efforts. may impose restrictions exercise rights granted affirmed License. example, may impose license fee, royalty, charge exercise rights granted License, may initiate litigation (including cross-claim counterclaim lawsuit) alleging patent claim infringed making, using, selling, offering sale, importing Program portion .","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"id_11-patents","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"11. Patents","title":"GNU General Public License","text":"“contributor” copyright holder authorizes use License Program work Program based. work thus licensed called contributor’s “contributor version”. contributor’s “essential patent claims” patent claims owned controlled contributor, whether already acquired hereafter acquired, infringed manner, permitted License, making, using, selling contributor version, include claims infringed consequence modification contributor version. purposes definition, “control” includes right grant patent sublicenses manner consistent requirements License. contributor grants non-exclusive, worldwide, royalty-free patent license contributor’s essential patent claims, make, use, sell, offer sale, import otherwise run, modify propagate contents contributor version. following three paragraphs, “patent license” express agreement commitment, however denominated, enforce patent (express permission practice patent covenant sue patent infringement). “grant” patent license party means make agreement commitment enforce patent party. convey covered work, knowingly relying patent license, Corresponding Source work available anyone copy, free charge terms License, publicly available network server readily accessible means, must either (1) cause Corresponding Source available, (2) arrange deprive benefit patent license particular work, (3) arrange, manner consistent requirements License, extend patent license downstream recipients. “Knowingly relying” means actual knowledge , patent license, conveying covered work country, recipient’s use covered work country, infringe one identifiable patents country reason believe valid. , pursuant connection single transaction arrangement, convey, propagate procuring conveyance , covered work, grant patent license parties receiving covered work authorizing use, propagate, modify convey specific copy covered work, patent license grant automatically extended recipients covered work works based . patent license “discriminatory” include within scope coverage, prohibits exercise , conditioned non-exercise one rights specifically granted License. may convey covered work party arrangement third party business distributing software, make payment third party based extent activity conveying work, third party grants, parties receive covered work , discriminatory patent license () connection copies covered work conveyed (copies made copies), (b) primarily connection specific products compilations contain covered work, unless entered arrangement, patent license granted, prior 28 March 2007. Nothing License shall construed excluding limiting implied license defenses infringement may otherwise available applicable patent law.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"id_12-no-surrender-of-others-freedom","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"12. No Surrender of Others’ Freedom","title":"GNU General Public License","text":"conditions imposed (whether court order, agreement otherwise) contradict conditions License, excuse conditions License. convey covered work satisfy simultaneously obligations License pertinent obligations, consequence may convey . example, agree terms obligate collect royalty conveying convey Program, way satisfy terms License refrain entirely conveying Program.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"id_13-use-with-the-gnu-affero-general-public-license","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"13. Use with the GNU Affero General Public License","title":"GNU General Public License","text":"Notwithstanding provision License, permission link combine covered work work licensed version 3 GNU Affero General Public License single combined work, convey resulting work. terms License continue apply part covered work, special requirements GNU Affero General Public License, section 13, concerning interaction network apply combination .","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"id_14-revised-versions-of-this-license","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"14. Revised Versions of this License","title":"GNU General Public License","text":"Free Software Foundation may publish revised /new versions GNU General Public License time time. new versions similar spirit present version, may differ detail address new problems concerns. version given distinguishing version number. Program specifies certain numbered version GNU General Public License “later version” applies , option following terms conditions either numbered version later version published Free Software Foundation. Program specify version number GNU General Public License, may choose version ever published Free Software Foundation. Program specifies proxy can decide future versions GNU General Public License can used, proxy’s public statement acceptance version permanently authorizes choose version Program. Later license versions may give additional different permissions. However, additional obligations imposed author copyright holder result choosing follow later version.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"id_15-disclaimer-of-warranty","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"15. Disclaimer of Warranty","title":"GNU General Public License","text":"WARRANTY PROGRAM, EXTENT PERMITTED APPLICABLE LAW. EXCEPT OTHERWISE STATED WRITING COPYRIGHT HOLDERS /PARTIES PROVIDE PROGRAM “” WITHOUT WARRANTY KIND, EITHER EXPRESSED IMPLIED, INCLUDING, LIMITED , IMPLIED WARRANTIES MERCHANTABILITY FITNESS PARTICULAR PURPOSE. ENTIRE RISK QUALITY PERFORMANCE PROGRAM . PROGRAM PROVE DEFECTIVE, ASSUME COST NECESSARY SERVICING, REPAIR CORRECTION.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"id_16-limitation-of-liability","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"16. Limitation of Liability","title":"GNU General Public License","text":"EVENT UNLESS REQUIRED APPLICABLE LAW AGREED WRITING COPYRIGHT HOLDER, PARTY MODIFIES /CONVEYS PROGRAM PERMITTED , LIABLE DAMAGES, INCLUDING GENERAL, SPECIAL, INCIDENTAL CONSEQUENTIAL DAMAGES ARISING USE INABILITY USE PROGRAM (INCLUDING LIMITED LOSS DATA DATA RENDERED INACCURATE LOSSES SUSTAINED THIRD PARTIES FAILURE PROGRAM OPERATE PROGRAMS), EVEN HOLDER PARTY ADVISED POSSIBILITY DAMAGES.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"id_17-interpretation-of-sections-15-and-16","dir":"","previous_headings":"TERMS AND CONDITIONS","what":"17. Interpretation of Sections 15 and 16","title":"GNU General Public License","text":"disclaimer warranty limitation liability provided given local legal effect according terms, reviewing courts shall apply local law closely approximates absolute waiver civil liability connection Program, unless warranty assumption liability accompanies copy Program return fee. END TERMS CONDITIONS","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"how-to-apply-these-terms-to-your-new-programs","dir":"","previous_headings":"","what":"How to Apply These Terms to Your New Programs","title":"GNU General Public License","text":"develop new program, want greatest possible use public, best way achieve make free software everyone can redistribute change terms. , attach following notices program. safest attach start source file effectively state exclusion warranty; file least “copyright” line pointer full notice found. Also add information contact electronic paper mail. program terminal interaction, make output short notice like starts interactive mode: hypothetical commands show w show c show appropriate parts General Public License. course, program’s commands might different; GUI interface, use “box”. also get employer (work programmer) school, , sign “copyright disclaimer” program, necessary. information , apply follow GNU GPL, see . GNU General Public License permit incorporating program proprietary programs. program subroutine library, may consider useful permit linking proprietary applications library. want , use GNU Lesser General Public License instead License. first, please read .","code":"shinyWidgets: R package to customize Shiny applications Copyright (C) 2020 Victor PERRIER This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program. If not, see . shinyWidgets Copyright (C) 2020 Victor PERRIER This program comes with ABSOLUTELY NO WARRANTY; for details type 'show w'. This is free software, and you are welcome to redistribute it under certain conditions; type 'show c' for details."},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"libraries-used","dir":"","previous_headings":"","what":"Libraries used","title":"GNU General Public License","text":"shinyWidgets R package includes open source software components. following list components (full copies license agreements used components included ): Bootstrap Switch Mattia Larentis & Emanuele Emanuele, https://github.com/nostalgiaz/bootstrap-switch Awesome Bootstrap Checkbox Flatlogic, https://github.com/flatlogic/awesome-bootstrap-checkbox Bootstrap Twitter, Inc, Mark Otto, Jacob Thornton & Bootstrap contributors, https://github.com/twbs/bootstrap Bootstrap Select SnapAppointments, https://github.com/snapappointments/bootstrap-select Material switch design mouse0270, https://bootsnipp.com/snippets/xp0QM SweetAlert2 Limon Monte, https://github.com/sweetalert2/sweetalert2 multi.js Fabian Lindfors, https://github.com/Fabianlindfors/multi.js animate.css, https://github.com/daneden/animate.css bttn.css Ganapati V S, https://github.com/ganapativs/bttn.css jQuery Knob Anthony Terrien, https://github.com/aterrien/jQuery-Knob Pretty Checkbox Lokesh Rajendran, https://github.com/lokesh-coder/pretty-checkbox Spectrum Brian Grinstead, https://github.com/bgrins/spectrum noUISlider Leon Gersen, https://github.com/leongersen/noUiSlider Air-datepicker Timofey Marochkin, https://github.com/t1m0n/air-datepicker tippy.js atomiks & contributors, https://github.com/atomiks/tippyjs autoNumeric.js Robert Knothe & contributors, https://github.com/autoNumeric/autoNumeric Virtual Select Sa Si Dev, https://github.com/sa-si-dev/virtual-select treejs daweilv, https://github.com/daweilv/treejs","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"bootstrap-switch-license","dir":"","previous_headings":"","what":"Bootstrap Switch License","title":"GNU General Public License","text":"MIT License (MIT) Copyright (c) 2013-2015 authors Bootstrap Switch Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"awesome-bootstrap-checkbox-license","dir":"","previous_headings":"","what":"Awesome Bootstrap Checkbox License","title":"GNU General Public License","text":"MIT License (MIT) Copyright (c) 2014 flatlogic.com Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"bootstrap-license","dir":"","previous_headings":"","what":"Bootstrap License","title":"GNU General Public License","text":"MIT License (MIT) Copyright (c) 2011-2014 Twitter, Inc Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"bootstrap-select-license","dir":"","previous_headings":"","what":"Bootstrap Select License","title":"GNU General Public License","text":"MIT License (MIT) Copyright (c) 2012-2018 SnapAppointments, LLC Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"sweet-alert-2-license","dir":"","previous_headings":"","what":"Sweet Alert 2 License","title":"GNU General Public License","text":"MIT License (MIT) Copyright (c) 2014 Tristan Edwards & Limon Monte Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"multijs-license","dir":"","previous_headings":"","what":"multi.js License","title":"GNU General Public License","text":"Copyright 2017 Fabian Lindfors Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"jquery-knob-license","dir":"","previous_headings":"","what":"jQuery Knob License","title":"GNU General Public License","text":"MIT License (MIT) Copyright (c) 2013 Anthony Terrien Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"animate-license","dir":"","previous_headings":"","what":"animate License","title":"GNU General Public License","text":"MIT License (MIT) Copyright (c) 2016 Daniel Eden Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"bttn-license","dir":"","previous_headings":"","what":"bttn License","title":"GNU General Public License","text":"MIT License Copyright (c) 2016 Ganapati V S Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"spectrum-license","dir":"","previous_headings":"","what":"Spectrum License","title":"GNU General Public License","text":"Copyright (c) Brian Grinstead Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"pretty-checkbox-license","dir":"","previous_headings":"","what":"pretty-checkbox License","title":"GNU General Public License","text":"MIT License (MIT) Copyright (c) 2017 Lokesh Rajendran ( lokesh.aero@gmail.com ) Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"air-datepicker-license","dir":"","previous_headings":"","what":"air-datepicker License","title":"GNU General Public License","text":"MIT License (MIT) Copyright (c) 2016 Timofey Marochkin Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"tippyjs-license","dir":"","previous_headings":"","what":"tippy.js License","title":"GNU General Public License","text":"MIT License Copyright (c) 2017-present atomiks Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"autonumericjs-license","dir":"","previous_headings":"","what":"autoNumeric.js License","title":"GNU General Public License","text":"Copyright 2009 Robert J. Knothe bob@decorplanit.com contributors Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sub license, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"virtual-select-license","dir":"","previous_headings":"","what":"Virtual Select License","title":"GNU General Public License","text":"MIT License Copyright (c) 2021 Sa Si Dev Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/LICENSE.html","id":"treejs-license","dir":"","previous_headings":"","what":"treejs License","title":"GNU General Public License","text":"MIT License Copyright (c) 2018 david.lv Permission hereby granted, free charge, person obtaining copy software associated documentation files (“Software”), deal Software without restriction, including without limitation rights use, copy, modify, merge, publish, distribute, sublicense, /sell copies Software, permit persons Software furnished , subject following conditions: copyright notice permission notice shall included copies substantial portions Software. SOFTWARE PROVIDED “”, WITHOUT WARRANTY KIND, EXPRESS IMPLIED, INCLUDING LIMITED WARRANTIES MERCHANTABILITY, FITNESS PARTICULAR PURPOSE NONINFRINGEMENT. EVENT SHALL AUTHORS COPYRIGHT HOLDERS LIABLE CLAIM, DAMAGES LIABILITY, WHETHER ACTION CONTRACT, TORT OTHERWISE, ARISING , CONNECTION SOFTWARE USE DEALINGS SOFTWARE.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/authors.html","id":null,"dir":"","previous_headings":"","what":"Authors","title":"Authors and Citation","text":"Victor Perrier. Author, maintainer, copyright holder. Fanny Meyer. Author. David Granjon. Author. Ian Fellows. Contributor. Methods mutating vertical tabs & updateMultiInput Wil Davis. Contributor. numericRangeInput function Spencer Matthews. Contributor. autoNumeric methods JavaScript CSS libraries authors. Contributor, copyright holder. authors listed LICENSE.md","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/authors.html","id":"citation","dir":"","previous_headings":"","what":"Citation","title":"Authors and Citation","text":"Perrier V, Meyer F, Granjon D (2024). shinyWidgets: Custom Inputs Widgets Shiny. R package version 0.8.6, https://dreamrs.github.io/shinyWidgets/, https://github.com/dreamRs/shinyWidgets.","code":"@Manual{, title = {shinyWidgets: Custom Inputs Widgets for Shiny}, author = {Victor Perrier and Fanny Meyer and David Granjon}, year = {2024}, note = {R package version 0.8.6, https://dreamrs.github.io/shinyWidgets/}, url = {https://github.com/dreamRs/shinyWidgets}, }"},{"path":"https://dreamrs.github.io/shinyWidgets/index.html","id":"shinywidgets","dir":"","previous_headings":"","what":"Custom Inputs Widgets for Shiny","title":"Custom Inputs Widgets for Shiny","text":"Extend widgets available shiny","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/index.html","id":"overview","dir":"","previous_headings":"","what":"Overview","title":"Custom Inputs Widgets for Shiny","text":"package provide custom widgets components enhance shiny applications. can replace classical checkboxes switch button, add colors radio buttons checkbox group, use buttons radio checkboxes. widget update method change value input server.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/index.html","id":"installation","dir":"","previous_headings":"","what":"Installation","title":"Custom Inputs Widgets for Shiny","text":"Install CRAN : install development version GitHub :","code":"install.packages(\"shinyWidgets\") # install.packages(\"remotes\") remotes::install_github(\"dreamRs/shinyWidgets\")"},{"path":"https://dreamrs.github.io/shinyWidgets/index.html","id":"demo","dir":"","previous_headings":"","what":"Demo","title":"Custom Inputs Widgets for Shiny","text":"gallery application included package. installed, use following command launch : live version available : http://shinyapps.dreamrs.fr/shinyWidgets","code":"shinyWidgets::shinyWidgetsGallery()"},{"path":[]},{"path":"https://dreamrs.github.io/shinyWidgets/index.html","id":"single-checkbox","dir":"","previous_headings":"Widgets","what":"Single checkbox","title":"Custom Inputs Widgets for Shiny","text":"Bootstrap switch Turn checkboxes toggle switches : Material switch Turn checkboxes toggle switches : Pretty checkbox Pretty switch Pretty toggle","code":"switchInput(inputId = \"id\", value = TRUE) materialSwitch(inputId = \"id\", label = \"Primary switch\", status = \"danger\") prettyCheckbox( inputId = \"id\", label = \"Check me!\", icon = icon(\"check\") ) prettySwitch( inputId = \"id\", label = \"Switch:\", fill = TRUE, status = \"primary\" ) prettyToggle( inputId = \"id\", label_on = \"Checked!\", label_off = \"Unchecked...\" )"},{"path":"https://dreamrs.github.io/shinyWidgets/index.html","id":"checkboxes-and-radio-buttons","dir":"","previous_headings":"Widgets","what":"Checkboxes and radio buttons","title":"Custom Inputs Widgets for Shiny","text":"Bootstrap buttons Pretty checkbox group radio buttons","code":"checkboxGroupButtons( # or radioGroupButtons inputId = \"id\", label = \"Choice: \", choices = c(\"A\", \"B\", \"C\") ) prettyCheckboxGroup( # or prettyRadioButtons inputId = \"id\", label = \"Choice\", choices = c(\"A\", \"B\", \"c\"), outline = TRUE, plain = TRUE, status = \"primary\", icon = icon(\"check\") )"},{"path":"https://dreamrs.github.io/shinyWidgets/index.html","id":"select-menu","dir":"","previous_headings":"Widgets","what":"Select menu","title":"Custom Inputs Widgets for Shiny","text":"Bootstrap select picker Select menu lot configurations options available: Virtual select Select menu can support long list choices:","code":"pickerInput( inputId = \"id\", label = \"Select:\", choices = month.name, options = pickerOptions( actionsBox = TRUE, size = 10, selectedTextFormat = \"count > 3\" ), multiple = TRUE ) virtualSelectInput( inputId = \"id\", label = \"Select:\", choices = list( \"Spring\" = c(\"March\", \"April\", \"May\"), \"Summer\" = c(\"June\", \"July\", \"August\"), \"Autumn\" = c(\"September\", \"October\", \"November\"), \"Winter\" = c(\"December\", \"January\", \"February\") ), showValueAsTags = TRUE, search = TRUE, multiple = TRUE )"},{"path":"https://dreamrs.github.io/shinyWidgets/index.html","id":"date-picker","dir":"","previous_headings":"Widgets","what":"Date picker","title":"Custom Inputs Widgets for Shiny","text":"Air Datepicker Date (month year) picker lot options timepicker integrated :","code":"airDatepickerInput( inputId = \"id\", label = \"Select:\", placeholder = \"Placeholder\", multiple = 5, clearButton = TRUE )"},{"path":"https://dreamrs.github.io/shinyWidgets/index.html","id":"sliders","dir":"","previous_headings":"Widgets","what":"Sliders","title":"Custom Inputs Widgets for Shiny","text":"Slider Text Slider strings, pass whatever want: noUiSlider range slider can colored, two handles positioned vertically (among things):","code":"sliderTextInput( inputId = \"id\", label = \"Choice:\", grid = TRUE, force_edges = TRUE, choices = c( \"Strongly disagree\", \"Disagree\", \"Neither agree nor disagree\", \"Agree\", \"Strongly agree\" ) ) noUiSliderInput( inputId = \"id\", label = \"Select:\", min = 0, max = 600, value = c(100, 220, 400), tooltips = TRUE, step = 1 )"},{"path":"https://dreamrs.github.io/shinyWidgets/index.html","id":"tree","dir":"","previous_headings":"Widgets","what":"Tree","title":"Custom Inputs Widgets for Shiny","text":"Tree check Select value(s) hierarchical structure:","code":"treeInput( inputId = \"ID2\", label = \"Select cities:\", choices = create_tree(cities), returnValue = \"text\", closeDepth = 1 )"},{"path":"https://dreamrs.github.io/shinyWidgets/index.html","id":"text","dir":"","previous_headings":"Widgets","what":"Text","title":"Custom Inputs Widgets for Shiny","text":"Search text input triggered hitting ‘Enter’ clicking search button :","code":"searchInput( inputId = \"id\", label = \"Enter your search :\", placeholder = \"This is a placeholder\", btnSearch = icon(\"search\"), btnReset = icon(\"remove\"), width = \"100%\" )"},{"path":[]},{"path":"https://dreamrs.github.io/shinyWidgets/index.html","id":"sweet-alert","dir":"","previous_headings":"Other functionnalities","what":"Sweet Alert","title":"Custom Inputs Widgets for Shiny","text":"Show alert message user provide feedback, via sweetalert2 library: See examples ?show_alert. Request confirmation user : See examples ?ask_confirmation.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/index.html","id":"dropdown-button","dir":"","previous_headings":"Other functionnalities","what":"Dropdown button","title":"Custom Inputs Widgets for Shiny","text":"Hide input button : See also ?dropMenu()","code":"dropdownButton( tags$h3(\"List of Input\"), selectInput(inputId = 'xcol', label = 'X Variable', choices = names(iris)), selectInput(inputId = 'ycol', label = 'Y Variable', choices = names(iris), selected = names(iris)[[2]]), sliderInput(inputId = 'clusters', label = 'Cluster count', value = 3, min = 1, max = 9), circle = TRUE, status = \"danger\", icon = icon(\"gear\"), width = \"300px\", tooltip = tooltipOptions(title = \"Click to see inputs !\") )"},{"path":"https://dreamrs.github.io/shinyWidgets/index.html","id":"development","dir":"","previous_headings":"","what":"Development","title":"Custom Inputs Widgets for Shiny","text":"package use {packer} manage JavaScript assets, see packer’s documentation . Install nodes modules : Modify inputs bindings srcjs/inputs/, run: Re-install R package try functions.","code":"packer::npm_install() packer::bundle()"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/WinBox.html","id":null,"dir":"Reference","previous_headings":"","what":"WinBox — WinBox","title":"WinBox — WinBox","text":"window manager JavaScript library WinBox.js.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/WinBox.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"WinBox — WinBox","text":"","code":"WinBox( title, ui, options = wbOptions(), controls = wbControls(), id = NULL, padding = \"5px 10px\", auto_height = FALSE, auto_index = TRUE, session = shiny::getDefaultReactiveDomain() ) closeWinBox(id, session = shiny::getDefaultReactiveDomain()) applyWinBox(id, method, ..., session = shiny::getDefaultReactiveDomain())"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/WinBox.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"WinBox — WinBox","text":"title Title window. ui Content window. options List options, see wbOptions(). controls List controls, see wbControls(). id unique identifier window, window id already open, closed opening new one. closing windows, use id = NULL close last one opened. padding Padding window content. auto_height Automatically set height window according content. Note content fix height may work properly. auto_index Automatically set z-index property show winbox content, including modal windows. session Shiny session. method Method apply WinBox, see avaialable ones : https://github.com/nextapps-de/winbox?tab=readme-ov-file#overview ... Parameters method.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/WinBox.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"WinBox — WinBox","text":"value, window openned UI.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/WinBox.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"WinBox — WinBox","text":"need include html_dependency_winbox() UI definition function work.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/WinBox.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"WinBox — WinBox","text":"","code":"library(shiny) library(shinyWidgets) ui <- fluidPage( html_dependency_winbox(), actionButton(inputId = \"show\", label = \"Show WinBox\"), verbatimTextOutput(\"res\") ) server <- function(input, output, session) { observeEvent(input$show, { WinBox( title = \"WinBox window\", ui = tagList( tags$h2(\"Hello from WinBox!\"), \"Text content of winbox.\", selectInput(\"month\", \"Select a month:\", month.name) ) ) }) output$res <- renderPrint(input$month) } if (interactive()) shinyApp(ui, server) library(shiny) library(shinyWidgets) ui <- fluidPage( html_dependency_winbox(), actionButton(\"minimize\", \"Minimize WinBox\"), actionButton(\"maximize\", \"Maximize WinBox\"), actionButton(\"setBackground\", \"Set background\"), actionButton(\"setTitle\", \"Set title\"), actionButton(\"resize\", \"Resize\"), actionButton(\"move\", \"Move\") ) server <- function(input, output, session) { WinBox( id = \"myWb\", title = \"WinBox\", ui = tagList( tags$h3(\"Hello from WinBox!\"), tags$p(\"Some content for the WinBox\") ) ) observeEvent(input$minimize, { applyWinBox(\"myWb\", \"minimize\") }) observeEvent(input$maximize, { applyWinBox(\"myWb\", \"maximize\") }) observeEvent(input$setBackground, { applyWinBox(\"myWb\", \"setBackground\", \"#ff005d\") }) observeEvent(input$setTitle, { applyWinBox(\"myWb\", \"setTitle\", \"This is a new title\") }) observeEvent(input$resize, { applyWinBox(\"myWb\", \"resize\", \"50%\", \"50%\") }) observeEvent(input$move, { applyWinBox(\"myWb\", \"move\", \"center\", \"center\") }) } if (interactive()) shinyApp(ui, server)"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/actionBttn.html","id":null,"dir":"Reference","previous_headings":"","what":"Awesome action button — actionBttn","title":"Awesome action button — actionBttn","text":"Like shiny::actionButton() awesome, via https://bttn.surge.sh/","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/actionBttn.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Awesome action button — actionBttn","text":"","code":"actionBttn( inputId, label = NULL, icon = NULL, style = \"unite\", color = \"default\", size = \"md\", block = FALSE, no_outline = TRUE, ... )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/actionBttn.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Awesome action button — actionBttn","text":"inputId input slot used access value. label contents button, usually text label. icon optional icon appear button. style Style button, choose simple, bordered, minimal, stretch, jelly, gradient, fill, material-circle, material-flat, pill, float, unite. color Color button : default, primary, warning, danger, success, royal. size Size button : xs,sm, md, lg. block Logical, full width button. no_outline Logical, show outline navigating keyboard/interact using mouse touch. ... arguments pass container tag function.","code":""},{"path":[]},{"path":"https://dreamrs.github.io/shinyWidgets/reference/actionBttn.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Awesome action button — actionBttn","text":"","code":"if (interactive()) { library(shiny) library(shinyWidgets) ui <- fluidPage( tags$h2(\"Awesome action button\"), tags$br(), actionBttn( inputId = \"bttn1\", label = \"Go!\", color = \"primary\", style = \"bordered\" ), tags$br(), verbatimTextOutput(outputId = \"res_bttn1\"), tags$br(), actionBttn( inputId = \"bttn2\", label = \"Go!\", color = \"success\", style = \"material-flat\", icon = icon(\"sliders\"), block = TRUE ), tags$br(), verbatimTextOutput(outputId = \"res_bttn2\") ) server <- function(input, output, session) { output$res_bttn1 <- renderPrint(input$bttn1) output$res_bttn2 <- renderPrint(input$bttn2) } shinyApp(ui = ui, server = server) }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/actionGroupButtons.html","id":null,"dir":"Reference","previous_headings":"","what":"Actions Buttons Group Inputs — actionGroupButtons","title":"Actions Buttons Group Inputs — actionGroupButtons","text":"Create group actions buttons.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/actionGroupButtons.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Actions Buttons Group Inputs — actionGroupButtons","text":"","code":"actionGroupButtons( inputIds, labels, status = \"default\", size = \"normal\", direction = \"horizontal\", fullwidth = FALSE )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/actionGroupButtons.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Actions Buttons Group Inputs — actionGroupButtons","text":"inputIds inputs slot used access value, one button. labels Labels buttons, must length inputIds. status Add class buttons, can use Bootstrap status like 'info', 'primary', 'danger', 'warning' 'success'. use arbitrary strings add custom class, e.g. : status = 'myClass', buttons class btn-myClass. size Size buttons ('xs', 'sm', 'normal', 'lg'). direction Horizontal vertical. fullwidth TRUE, fill width parent div.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/actionGroupButtons.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Actions Buttons Group Inputs — actionGroupButtons","text":"actions buttons group control can added UI definition.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/actionGroupButtons.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Actions Buttons Group Inputs — actionGroupButtons","text":"","code":"if (interactive()) { library(\"shiny\") library(\"shinyWidgets\") ui <- fluidPage( br(), actionGroupButtons( inputIds = c(\"btn1\", \"btn2\", \"btn3\"), labels = list(\"Action 1\", \"Action 2\", tags$span(icon(\"gear\"), \"Action 3\")), status = \"primary\" ), verbatimTextOutput(outputId = \"res1\"), verbatimTextOutput(outputId = \"res2\"), verbatimTextOutput(outputId = \"res3\") ) server <- function(input, output, session) { output$res1 <- renderPrint(input$btn1) output$res2 <- renderPrint(input$btn2) output$res3 <- renderPrint(input$btn3) } shinyApp(ui = ui, server = server) }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/addSpinner.html","id":null,"dir":"Reference","previous_headings":"","what":"Display a spinner above an output when this one recalculate — addSpinner","title":"Display a spinner above an output when this one recalculate — addSpinner","text":"Display spinner output one recalculate","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/addSpinner.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Display a spinner above an output when this one recalculate — addSpinner","text":"","code":"addSpinner(output, spin = \"double-bounce\", color = \"#112446\")"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/addSpinner.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Display a spinner above an output when this one recalculate — addSpinner","text":"output output element, typically result renderPlot. spin Style spinner, choice : circle, bounce, folding-cube, rotating-plane, cube-grid, fading-circle, double-bounce, dots, cube. color Color spinner.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/addSpinner.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Display a spinner above an output when this one recalculate — addSpinner","text":"list tags","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/addSpinner.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Display a spinner above an output when this one recalculate — addSpinner","text":"spinner disappear page, masked plot, plot must non-transparent background. robust way insert loaders, see package \"shinycssloaders\".","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/addSpinner.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Display a spinner above an output when this one recalculate — addSpinner","text":"","code":"# wrap an output: addSpinner(shiny::plotOutput(\"plot\")) #> #>
#>
<\/div> #>
<\/div> #> <\/div> #>
<\/div> #> <\/div> # Complete demo: if (interactive()) { library(shiny) library(shinyWidgets) ui <- fluidPage( tags$h2(\"Exemple spinners\"), actionButton(inputId = \"refresh\", label = \"Refresh\", width = \"100%\"), fluidRow( column( width = 5, offset = 1, addSpinner(plotOutput(\"plot1\"), spin = \"circle\", color = \"#E41A1C\"), addSpinner(plotOutput(\"plot3\"), spin = \"bounce\", color = \"#377EB8\"), addSpinner(plotOutput(\"plot5\"), spin = \"folding-cube\", color = \"#4DAF4A\"), addSpinner(plotOutput(\"plot7\"), spin = \"rotating-plane\", color = \"#984EA3\"), addSpinner(plotOutput(\"plot9\"), spin = \"cube-grid\", color = \"#FF7F00\") ), column( width = 5, addSpinner(plotOutput(\"plot2\"), spin = \"fading-circle\", color = \"#FFFF33\"), addSpinner(plotOutput(\"plot4\"), spin = \"double-bounce\", color = \"#A65628\"), addSpinner(plotOutput(\"plot6\"), spin = \"dots\", color = \"#F781BF\"), addSpinner(plotOutput(\"plot8\"), spin = \"cube\", color = \"#999999\") ) ), actionButton(inputId = \"refresh2\", label = \"Refresh\", width = \"100%\") ) server <- function(input, output, session) { dat <- reactive({ input$refresh input$refresh2 Sys.sleep(3) Sys.time() }) lapply( X = seq_len(9), FUN = function(i) { output[[paste0(\"plot\", i)]] <- renderPlot({ dat() plot(sin, -pi, i*pi) }) } ) } shinyApp(ui, server) }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/airDatepicker.html","id":null,"dir":"Reference","previous_headings":"","what":"Air Date Picker Input — airDatepicker","title":"Air Date Picker Input — airDatepicker","text":"alternative shiny::dateInput() select single, multiple date range based Air Datepicker library. two alias select months years.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/airDatepicker.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Air Date Picker Input — airDatepicker","text":"","code":"airDatepickerInput( inputId, label = NULL, value = NULL, multiple = FALSE, range = FALSE, timepicker = FALSE, separator = \" - \", placeholder = NULL, dateFormat = \"yyyy-MM-dd\", firstDay = NULL, minDate = NULL, maxDate = NULL, disabledDates = NULL, disabledDaysOfWeek = NULL, highlightedDates = NULL, view = c(\"days\", \"months\", \"years\"), startView = NULL, minView = c(\"days\", \"months\", \"years\"), monthsField = c(\"monthsShort\", \"months\"), clearButton = FALSE, todayButton = FALSE, autoClose = FALSE, timepickerOpts = timepickerOptions(), position = NULL, update_on = c(\"change\", \"close\"), onlyTimepicker = FALSE, toggleSelected = TRUE, addon = c(\"right\", \"left\", \"none\"), addonAttributes = list(class = \"btn-outline-secondary\"), language = \"en\", inline = FALSE, readonly = FALSE, onkeydown = NULL, width = NULL ) timepickerOptions( dateTimeSeparator = NULL, timeFormat = NULL, minHours = NULL, maxHours = NULL, minMinutes = NULL, maxMinutes = NULL, hoursStep = NULL, minutesStep = NULL ) airMonthpickerInput(inputId, label = NULL, value = NULL, ...) airYearpickerInput(inputId, label = NULL, value = NULL, ...)"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/airDatepicker.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Air Date Picker Input — airDatepicker","text":"inputId input slot used access value. label Display label control, NULL label. value Initial value(s), dates character string accepted yyyy-mm-dd format, Date/POSIXct object. Can single value several values. multiple Select multiple dates. TRUE, one can select unlimited dates. numeric passed, amount selected dates limited . range Select date range. timepicker Add timepicker calendar select time. separator Separator dates several selected, default \" - \". placeholder character string giving user hint can entered control. dateFormat Format use display date(s), default yyyy-MM-dd, see online documentation possible values. firstDay Day index week started. Possible values 0 6, 0 - Sunday 6 - Saturday. default value taken current localization, passed higher priority. minDate minimum allowed date. Either Date object, string yyyy-mm-dd format. maxDate maximum allowed date. Either Date object, string yyyy-mm-dd format. disabledDates vector dates disable, e.g. able select one dates passed. disabledDaysOfWeek Day(s) week disable, numbers 0 (Sunday) 6 (Saturday). highlightedDates vector dates highlight. view Starting view, one 'days' (default), 'months' 'years'. startView Date shown calendar date picker opened. minView Minimal view, one 'days' (default), 'months' 'years'. monthsField Names months view 'months', use 'monthsShort' abbreviations 'months' full names. clearButton TRUE, button \"Clear\" visible. todayButton TRUE, button \"Today\" visible set view current date, Date used, set view given date select .. autoClose TRUE, date selection, datepicker closed. timepickerOpts Options timepicker, see timepickerOptions(). position calendar appear, two word string like 'bottom left' (default), 'top right', 'left top'. update_on send selected value server: 'change' calendar 'close'd. onlyTimepicker Display time picker. toggleSelected TRUE, range mode, possible select date start end. addon Display calendar icon 'right' 'left' widget, 'none'. icon act like shiny::actionButton(), can retrieve value server-side input$
_button. addonAttributes list() additional attributes use addon tag, like class example. language Language use, can one ar, cs, da, de, en, es, fi, fr, hu, , ja, ko, nl, pl, pt-BR, pt, ro, ru, si, sk, sv, th, tr, uk, zh. inline TRUE, datepicker always visible. readonly TRUE, datepicker readonly input field editable. onkeydown Attribute passed input field. width width input, e.g. '400px', 100%. dateTimeSeparator Separator date time, default \" \". timeFormat Desirable time format. can use: h — hours 12-hour mode hh — hours 12-hour mode leading zero H — hours 24-hour mode HH — hours 24-hour mode leading zero m — minutes mm — minutes leading zero aa — day period lower case AA — day period upper case minHours Minimal hours value, must 0 23. able choose value lower . maxHours Maximum hours value, must 0 23. able choose value higher . minMinutes Minimal minutes value, must 0 59. able choose value lower . maxMinutes Maximum minutes value, must 0 59. able choose value higher . hoursStep Hours step slider. minutesStep Minutes step slider. ... Arguments passed airDatepickerInput.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/airDatepicker.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Air Date Picker Input — airDatepicker","text":"Date object POSIXct UTC timezone.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/airDatepicker.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Air Date Picker Input — airDatepicker","text":"Since shinyWidgets 0.5.2 conflicts shiny::dateInput().","code":""},{"path":[]},{"path":"https://dreamrs.github.io/shinyWidgets/reference/airDatepicker.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Air Date Picker Input — airDatepicker","text":"","code":"if (interactive()) { # examples of different options to select dates: demoAirDatepicker(\"datepicker\") # select month(s) demoAirDatepicker(\"months\") # select year(s) demoAirDatepicker(\"years\") # select date and time demoAirDatepicker(\"timepicker\") # You can select multiple dates : library(shiny) library(shinyWidgets) ui <- fluidPage( airDatepickerInput( inputId = \"multiple\", label = \"Select multiple dates:\", placeholder = \"You can pick 5 dates\", multiple = 5, clearButton = TRUE ), verbatimTextOutput(\"res\") ) server <- function(input, output, session) { output$res <- renderPrint(input$multiple) } shinyApp(ui, server) }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/animateOptions.html","id":null,"dir":"Reference","previous_headings":"","what":"Animate options — animateOptions","title":"Animate options — animateOptions","text":"Animate options","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/animateOptions.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Animate options — animateOptions","text":"","code":"animateOptions(enter = \"fadeInDown\", exit = \"fadeOutUp\", duration = 1)"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/animateOptions.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Animate options — animateOptions","text":"enter Animation name appearance exit Animation name disappearance duration Duration animation","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/animateOptions.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Animate options — animateOptions","text":"list","code":""},{"path":[]},{"path":"https://dreamrs.github.io/shinyWidgets/reference/animateOptions.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Animate options — animateOptions","text":"","code":"## Only run examples in interactive R sessions if (interactive()) { dropdown( \"Your contents goes here ! You can pass several elements\", circle = TRUE, status = \"danger\", icon = icon(\"gear\"), width = \"300px\", animate = animateOptions(enter = \"fadeInDown\", exit = \"fadeOutUp\", duration = 3) ) }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/animations.html","id":null,"dir":"Reference","previous_headings":"","what":"Animation names — animations","title":"Animation names — animations","text":"List animations categories","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/animations.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Animation names — animations","text":"","code":"animations"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/animations.html","id":"format","dir":"Reference","previous_headings":"","what":"Format","title":"Animation names — animations","text":"list lists","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/animations.html","id":"source","dir":"Reference","previous_headings":"","what":"Source","title":"Animation names — animations","text":"https://github.com/animate-css/animate.css","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/appendVerticalTab.html","id":null,"dir":"Reference","previous_headings":"","what":"Mutate Vertical Tabset Panel — appendVerticalTab","title":"Mutate Vertical Tabset Panel — appendVerticalTab","text":"Mutate Vertical Tabset Panel","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/appendVerticalTab.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Mutate Vertical Tabset Panel — appendVerticalTab","text":"","code":"appendVerticalTab(inputId, tab, session = shiny::getDefaultReactiveDomain()) removeVerticalTab(inputId, index, session = shiny::getDefaultReactiveDomain()) reorderVerticalTabs( inputId, newOrder, session = shiny::getDefaultReactiveDomain() )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/appendVerticalTab.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Mutate Vertical Tabset Panel — appendVerticalTab","text":"inputId id verticalTabsetPanel object. tab verticalTab append. session session object passed function given shinyServer. index index tab remove. newOrder new index order.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/appendVerticalTab.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Mutate Vertical Tabset Panel — appendVerticalTab","text":"","code":"if (interactive()) { library(shiny) library(shinyWidgets) ui <- fluidPage( verticalTabsetPanel( verticalTabPanel(\"blaa\",\"foo\"), verticalTabPanel(\"yarp\",\"bar\"), id=\"hippi\" ) ) server <- function(input, output, session) { appendVerticalTab(\"hippi\", verticalTabPanel(\"bipi\",\"long\")) removeVerticalTab(\"hippi\", 1) appendVerticalTab(\"hippi\", verticalTabPanel(\"howdy\",\"fair\")) reorderVerticalTabs(\"hippi\", c(3,2,1)) } # Run the application shinyApp(ui = ui, server = server) }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/autonumericInput.html","id":null,"dir":"Reference","previous_headings":"","what":"Autonumeric Input Widget — autonumericInput","title":"Autonumeric Input Widget — autonumericInput","text":"R wrapper javascript AutoNumeric library, formatting numeric inputs shiny applications.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/autonumericInput.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Autonumeric Input Widget — autonumericInput","text":"","code":"autonumericInput( inputId, label, value, width = NULL, align = \"right\", currencySymbol = NULL, currencySymbolPlacement = NULL, decimalCharacter = NULL, digitGroupSeparator = NULL, allowDecimalPadding = NULL, decimalPlaces = NULL, divisorWhenUnfocused = NULL, rawValueDivisor = NULL, formatOnPageLoad = NULL, maximumValue = NULL, minimumValue = NULL, modifyValueOnWheel = NULL, emptyInputBehavior = \"null\", style = NULL, ... )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/autonumericInput.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Autonumeric Input Widget — autonumericInput","text":"inputId input slot used access value. label Display label control, NULL label. value Initial value (unformatted). width width input box, eg. \"200px\" \"100%\". align alignment text inside input box, one \"center\" (default), \"left\", \"right\". currencySymbol Defines currency symbol string. can string one character (allowing instance use space either side , example: '$ ' ' $'). Defaults \"\". currencySymbolPlacement Defines currency symbol placed, \"p\" prefix \"s\" suffix (default). decimalCharacter Defines decimal separator character used. Defaults \",\". digitGroupSeparator Defines decimal separator character used. Defaults \".\". allowDecimalPadding Defines decimal places padded zeros. Defaults TRUE. decimalPlaces Defines default number decimal places show formatted value, keep precision. Must 0 positive integer. Defaults 2. divisorWhenUnfocused number divides element value blur. focus, number multiplied back . Defaults NULL. rawValueDivisor Divides formatted value shown AutoNumeric element store divided result rawValue. Defaults 1. formatOnPageLoad Determine default value formatted initialization. Defaults TRUE. maximumValue Defines maximum possible value user can enter. minimumValue Defines minimum possible value user can enter. modifyValueOnWheel Allows user increment decrement element value mouse wheel. wheel behavior can modified wheelStep option. Defaults TRUE. emptyInputBehavior Defines displayed element raw value empty string ''. style CSS styles (character string) add tag. ... Additional parameters can passed AutoNumeric. See details information.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/autonumericInput.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Autonumeric Input Widget — autonumericInput","text":"autonumericInput object used UI function Shiny App.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/autonumericInput.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Autonumeric Input Widget — autonumericInput","text":"function wraps AutoNumeric.js library. parameter documentation provided sufficient users, wishing use advanced configurations advised look documentation AutoNumeric GitHub repository. Alexandre Bonneau done wonderful job documenting parameters full explanations parameters associated values can found . ... parameter can take arguments listed AutoNumeric GitHub repository. quick reference follows: decimalPlacesRawValue - Defines many decimal places kept raw value. set NULL (default) decimalPlaces used. decimalPlacesShownOnBlur - Defines many decimal places visible element unfocused. NULL (default) decimalPlaces used. decimalPlacesShownOnFocus - Defines many decimal places visible element focus. NULL (default) decimalPlaces used. digitalGroupSpacing - Defines many numbers grouped together thousands separator groupings. Must one c(\"2\", \"2s\", \"3\", \"4\"). Defaults 3. alwaysAllowDecimalCharacter - Defines decimal character decimal character alternative accepted already decimal character shown element. set TRUE, decimal character input accepted subsequently modify decimal character position, well rawValue. set FALSE, decimal character alternative key dropped. default setting. createLocalList - Defines local list AutoNumeric objects kept initializing object. Defaults TRUE. decimalCharacterAlternative - Allow declare alternative decimal separator automatically replaced decimalCharacter typed. useful countries use comma ',' decimal character keyboards numeric pads providing period '.' decimal character (France Spain instance). Must NULL (default), \",\", \".\". emptyInputBehavior - Defines displayed element raw value missing. One c(NULL, \"focus\", \"press\", \"always\", \"min\", \"max\", \"zero\") custom value. Defaults NULL. See AutoNumeric GitHub repository full details. selectNumberOnly - Determine select keyboard command select complete input text, input numeric value. Defaults TRUE. selectOnFocus - Defines element value selected focus. Note: selection done using selectNumberOnly option. Defaults TRUE. eventBubbles - Defines custom native events triggered AutoNumeric bubble . Defaults TRUE. eventIsCancelable - Defines custom native events triggered AutoNumeric cancelable. Defaults TRUE. formulaMode - Defines formula mode can activated user. set true, user can enter formula mode entering '=' character. user allowed enter simple math formula using numeric characters well following operators: +, -, *, /, ( ). formula mode exited user either validate math expression using Enter key, element blurred. Defaults FALSE. historySize - Set undo/redo history table size. Defaults 20. isCancellable - Allow user cancel undo changes made given autonumeric-managed element, pressing Escape key. Defaults TRUE. leadingZero - options describes entering 0 far left numbers allowed, superfluous zeroes kept input blurred. One c(\"allow\", \"deny\", \"keep\"). Defaults \"deny\". See AutoNumeric GitHub repository full details. wheelOn - Defines wheel event increment decrement element value. One c(\"focus\", \"hover\"). Defaults \"focus\". wheelStep - Defines much element value incremented/decremented wheel event. Can set value string \"progressive\" determines step size input. Defaults \"progressive\". negativeBracketsTypeOnBlur - Adds brackets-like characters negative values unfocused. brackets visible field focus. left right symbols enclosed quotes separated comma. Defaults NULL. negativePositiveSignPlacement - Placement negative/positive sign relative currencySymbol option. One c(\"p\", \"s\", \"l\", \"r\", NULL), defaults NULL. See AutoNumeric GitHub repository documentation. negativeSignCharacter - Defines negative sign symbol use. Must single character non-numeric. Defaults \"-\". positiveSignCharacter - Defines positive sign symbol use. Must single character non-numeric. Defaults \"+\". showPositiveSign - Allow positive sign symbol positiveSignCharacter displayed positive numbers. Defaults FALSE. onInvalidPaste - Manage autoNumeric react user tries paste invalid number. One c(\"error\", \"ignore\", \"clamp\", \"truncate\", \"replace\"). Defaults \"error\". overrideMinMaxLimits - Override minimum maximum limits. Must one c(\"ceiling\", \"floor\", \"ignore\", NULL). Defaults \"ceiling\". readOnly - Defines element ( another allowed html tag) set read initialization. Defaults FALSE. roundingMethod - Defines rounding method use. One c(\"S\", \"\", \"s\", \"\", \"B\", \"U\", \"D\", \"C\", \"F\", \"N05\", \"CHF\", \"U05\", \"D05\"). Defaults \"S\". See AutoNumeric GitHub repository documentation. saveValueToSessionStorage - Set TRUE allow decimalPlacesShownOnFocus value saved sessionStorage. Defaults FALSE. serializeSpaces - Defines serialize functions treat spaces. Either \"+\" (default) \"\\ showOnlyNumbersOnFocus - Defines element value converted raw value focus mouseenter, (back formatted blur mouseleave). Defaults FALSE. showWarnings - Defines warnings shown console. Defaults TRUE. styleRules - Defines rules calculate CSS class(es) apply element, based raw unformatted value. Defaults NULL. suffixText - Add text right hand side element value. suffix text can characters string, except numeric characters negative positive sign. Defaults NULL. symbolWhenUnfocused - Defines symbol placed suffix focus hovered. Defaults NULL. unformatOnHover - Defines element value unformatted user hover mouse holding Alt key. Defaults TRUE. valuesToStrings - Provides way automatically replacing formatted value pre-defined string, raw value equal specific value. Defaults NULL. watchExternalChanges - Defines AutoNumeric element watch external changes made without using .set(). Defaults FALSE.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/autonumericInput.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"Autonumeric Input Widget — autonumericInput","text":"Bonneau, Alexandre. 2018. \"AutoNumeric.js javascript Package\". http://autonumeric.org","code":""},{"path":[]},{"path":"https://dreamrs.github.io/shinyWidgets/reference/autonumericInput.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Autonumeric Input Widget — autonumericInput","text":"","code":"if (interactive()) { library(shiny) library(shinyWidgets) ui <- fluidPage( h1(\"Autonumeric Inputs\"), br(), autonumericInput( inputId = \"id1\", label = \"Default Input\", value = 1234.56 ), verbatimTextOutput(\"res1\"), autonumericInput( inputId = \"id2\", label = \"Custom Thousands of Dollars Input\", value = 1234.56, align = \"right\", currencySymbol = \"$\", currencySymbolPlacement = \"p\", decimalCharacter = \".\", digitGroupSeparator = \",\", divisorWhenUnfocused = 1000, symbolWhenUnfocused = \"K\" ), verbatimTextOutput(\"res2\"), autonumericInput( inputId = \"id3\", label = \"Custom Millions of Euros Input with Positive Sign\", value = 12345678910, align = \"right\", currencySymbol = \"\\u20ac\", currencySymbolPlacement = \"s\", decimalCharacter = \",\", digitGroupSeparator = \".\", divisorWhenUnfocused = 1000000, symbolWhenUnfocused = \" (millions)\", showPositiveSign = TRUE ), verbatimTextOutput(\"res3\") ) server <- function(input, output, session) { output$res1 <- renderPrint(input$id1) output$res2 <- renderPrint(input$id2) output$res3 <- renderPrint(input$id3) } shinyApp(ui, server) }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/awesomeCheckbox.html","id":null,"dir":"Reference","previous_headings":"","what":"Awesome Checkbox Input Control — awesomeCheckbox","title":"Awesome Checkbox Input Control — awesomeCheckbox","text":"Create Font Awesome Bootstrap checkbox can used specify logical values.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/awesomeCheckbox.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Awesome Checkbox Input Control — awesomeCheckbox","text":"","code":"awesomeCheckbox( inputId, label, value = FALSE, status = \"primary\", width = NULL )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/awesomeCheckbox.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Awesome Checkbox Input Control — awesomeCheckbox","text":"inputId input slot used access value. label Input label. value Initial value (TRUE FALSE). status Color buttons, valid Bootstrap status : default, primary, info, success, warning, danger. width width input","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/awesomeCheckbox.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Awesome Checkbox Input Control — awesomeCheckbox","text":"checkbox control can added UI definition.","code":""},{"path":[]},{"path":"https://dreamrs.github.io/shinyWidgets/reference/awesomeCheckbox.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Awesome Checkbox Input Control — awesomeCheckbox","text":"","code":"## Only run examples in interactive R sessions if (interactive()) { ui <- fluidPage( awesomeCheckbox(inputId = \"somevalue\", label = \"A single checkbox\", value = TRUE, status = \"danger\"), verbatimTextOutput(\"value\") ) server <- function(input, output) { output$value <- renderText({ input$somevalue }) } shinyApp(ui, server) }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/awesomeCheckboxGroup.html","id":null,"dir":"Reference","previous_headings":"","what":"Awesome Checkbox Group Input Control — awesomeCheckboxGroup","title":"Awesome Checkbox Group Input Control — awesomeCheckboxGroup","text":"Create Font Awesome Bootstrap checkbox can used specify logical values.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/awesomeCheckboxGroup.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Awesome Checkbox Group Input Control — awesomeCheckboxGroup","text":"","code":"awesomeCheckboxGroup( inputId, label, choices, selected = NULL, inline = FALSE, status = \"primary\", width = NULL )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/awesomeCheckboxGroup.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Awesome Checkbox Group Input Control — awesomeCheckboxGroup","text":"inputId input slot used access value. label Input label. choices List values show checkboxes . selected values initially selected, . inline TRUE, render choices inline (.e. horizontally) status Color buttons width width input","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/awesomeCheckboxGroup.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Awesome Checkbox Group Input Control — awesomeCheckboxGroup","text":"checkbox control can added UI definition.","code":""},{"path":[]},{"path":"https://dreamrs.github.io/shinyWidgets/reference/awesomeCheckboxGroup.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Awesome Checkbox Group Input Control — awesomeCheckboxGroup","text":"","code":"if (interactive()) { ui <- fluidPage( br(), awesomeCheckboxGroup( inputId = \"id1\", label = \"Make a choice:\", choices = c(\"graphics\", \"ggplot2\") ), verbatimTextOutput(outputId = \"res1\"), br(), awesomeCheckboxGroup( inputId = \"id2\", label = \"Make a choice:\", choices = c(\"base\", \"dplyr\", \"data.table\"), inline = TRUE, status = \"danger\" ), verbatimTextOutput(outputId = \"res2\") ) server <- function(input, output, session) { output$res1 <- renderPrint({ input$id1 }) output$res2 <- renderPrint({ input$id2 }) } shinyApp(ui = ui, server = server) }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/awesomeRadio.html","id":null,"dir":"Reference","previous_headings":"","what":"Awesome Radio Buttons Input Control — awesomeRadio","title":"Awesome Radio Buttons Input Control — awesomeRadio","text":"Create set prettier radio buttons used select item list.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/awesomeRadio.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Awesome Radio Buttons Input Control — awesomeRadio","text":"","code":"awesomeRadio( inputId, label, choices, selected = NULL, inline = FALSE, status = \"primary\", checkbox = FALSE, width = NULL )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/awesomeRadio.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Awesome Radio Buttons Input Control — awesomeRadio","text":"inputId input slot used access value. label Display label control, NULL label. choices List values select (elements list named name rather value displayed user) selected initially selected value (specified defaults first value). inline TRUE, render choices inline (.e. horizontally). status Color buttons, valid Bootstrap status : default, primary, info, success, warning, danger. checkbox Logical, render radio like checkboxes (square shape). width width input, e.g. 400px, 100%.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/awesomeRadio.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Awesome Radio Buttons Input Control — awesomeRadio","text":"set radio buttons can added UI definition.","code":""},{"path":[]},{"path":"https://dreamrs.github.io/shinyWidgets/reference/awesomeRadio.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Awesome Radio Buttons Input Control — awesomeRadio","text":"","code":"## Only run examples in interactive R sessions if (interactive()) { ui <- fluidPage( br(), awesomeRadio( inputId = \"id1\", label = \"Make a choice:\", choices = c(\"graphics\", \"ggplot2\") ), verbatimTextOutput(outputId = \"res1\"), br(), awesomeRadio( inputId = \"id2\", label = \"Make a choice:\", choices = c(\"base\", \"dplyr\", \"data.table\"), inline = TRUE, status = \"danger\" ), verbatimTextOutput(outputId = \"res2\") ) server <- function(input, output, session) { output$res1 <- renderPrint({ input$id1 }) output$res2 <- renderPrint({ input$id2 }) } shinyApp(ui = ui, server = server) }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/bootstrap-utils.html","id":null,"dir":"Reference","previous_headings":"","what":"Bootstrap panel / alert — bootstrap-utils","title":"Bootstrap panel / alert — bootstrap-utils","text":"Create panel (box) basic border padding, can use Bootstrap status style panel, see https://getbootstrap.com/docs/3.4/components/#panels.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/bootstrap-utils.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Bootstrap panel / alert — bootstrap-utils","text":"","code":"panel( ..., heading = NULL, footer = NULL, extra = NULL, status = c(\"default\", \"primary\", \"success\", \"info\", \"warning\", \"danger\") ) alert( ..., status = c(\"info\", \"success\", \"danger\", \"warning\"), dismissible = FALSE ) list_group(...)"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/bootstrap-utils.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Bootstrap panel / alert — bootstrap-utils","text":"... UI elements include inside panel alert. heading Title panel plain header. footer Footer panel. extra Additional elements include like table list_group, see examples. status Bootstrap status contextual alternative. dismissible Adds possibility close alert.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/bootstrap-utils.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Bootstrap panel / alert — bootstrap-utils","text":"UI definition.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/bootstrap-utils.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Bootstrap panel / alert — bootstrap-utils","text":"","code":"# Panels --------------------------------- library(shiny) library(shinyWidgets) ui <- fluidPage( # Try with different Bootstrap version # theme = bslib::bs_theme(version = 5), tags$h2(\"Bootstrap panel\"), # Default panel( \"Content goes here\", ), panel( \"With status\", status = \"primary\" ), # With header and footer panel( \"Content goes here\", heading = \"My title\", footer = \"Something\" ), # With status panel( \"Content goes here\", heading = \"My title\", status = \"primary\" ), # With table panel( heading = \"A famous table\", extra = tableOutput(outputId = \"table\") ), # With list group panel( heading = \"A list of things\", extra = list_group( \"First item\", \"Second item\", \"And third item\" ) ) ) server <- function(input, output, session) { output$table <- renderTable({ head(mtcars) }, width = \"100%\") } if (interactive()) shinyApp(ui = ui, server = server) # Alerts --------------------------------- library(shiny) library(shinyWidgets) ui <- fluidPage( # Try with different Bootstrap version # theme = bslib::bs_theme(version = 5), tags$h2(\"Alerts\"), fluidRow( column( width = 6, alert( status = \"success\", tags$b(\"Well done!\"), \"You successfully read this important alert message.\" ), alert( status = \"info\", tags$b(\"Heads up!\"), \"This alert needs your attention, but it's not super important.\" ), alert( status = \"info\", dismissible = TRUE, tags$b(\"Dismissable\"), \"You can close this one.\" ) ), column( width = 6, alert( status = \"warning\", tags$b(\"Warning!\"), \"Better check yourself, you're not looking too good.\" ), alert( status = \"danger\", tags$b(\"Oh snap!\"), \"Change a few things up and try submitting again.\" ) ) ) ) server <- function(input, output, session) { } if (interactive()) shinyApp(ui, server) # List group ----------------------------- library(shiny) library(shinyWidgets) ui <- fluidPage( tags$h2(\"List group\"), tags$b(\"List of item:\"), list_group( \"First item\", \"Second item\", \"And third item\" ), tags$b(\"Set active item:\"), list_group( list(class = \"active\", \"First item\"), \"Second item\", \"And third item\" ) ) server <- function(input, output, session) { } if (interactive()) shinyApp(ui, server)"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/checkboxGroupButtons.html","id":null,"dir":"Reference","previous_headings":"","what":"Buttons Group checkbox Input Control — checkboxGroupButtons","title":"Buttons Group checkbox Input Control — checkboxGroupButtons","text":"Create buttons grouped act like checkboxes.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/checkboxGroupButtons.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Buttons Group checkbox Input Control — checkboxGroupButtons","text":"","code":"checkboxGroupButtons( inputId, label = NULL, choices = NULL, selected = NULL, status = \"default\", size = \"normal\", direction = \"horizontal\", justified = FALSE, individual = FALSE, checkIcon = list(), width = NULL, choiceNames = NULL, choiceValues = NULL, disabled = FALSE )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/checkboxGroupButtons.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Buttons Group checkbox Input Control — checkboxGroupButtons","text":"inputId input slot used access value. label Display label control, NULL label. choices List values show checkboxes . elements list named name rather value displayed user. argument provided, choiceNames choiceValues must provided, vice-versa. values strings; types (logicals numbers) coerced strings. selected values initially selected, . status Add class buttons, can use Bootstrap status like 'info', 'primary', 'danger', 'warning' 'success'. use arbitrary strings add custom class, e.g. : status = \"custom-class\", buttons class btn-custom-class. size Size buttons ('xs', 'sm', 'normal', 'lg') direction Horizontal vertical justified TRUE, fill width parent div individual TRUE, buttons separated. checkIcon list, empty must contain least one element named 'yes' corresponding icon display button checked. width width input, e.g. '400px', '100%'; see validateCssUnit(). choiceNames, choiceValues List names values, respectively, displayed user app correspond choice (reason, choiceNames choiceValues must length). either arguments provided, must provided choices must provided. advantage using named list choices choiceNames allows type UI object passed (tag objects, icons, HTML code, ...), instead just simple text. See Examples. disabled Initialize buttons disabled state (users able select value).","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/checkboxGroupButtons.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Buttons Group checkbox Input Control — checkboxGroupButtons","text":"buttons group control can added UI definition.","code":""},{"path":[]},{"path":"https://dreamrs.github.io/shinyWidgets/reference/checkboxGroupButtons.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Buttons Group checkbox Input Control — checkboxGroupButtons","text":"","code":"library(shiny) library(shinyWidgets) ui <- fluidPage( tags$h1(\"checkboxGroupButtons examples\"), checkboxGroupButtons( inputId = \"somevalue1\", label = \"Make a choice: \", choices = c(\"A\", \"B\", \"C\") ), verbatimTextOutput(\"value1\"), checkboxGroupButtons( inputId = \"somevalue2\", label = \"With custom status:\", choices = names(iris), status = \"primary\" ), verbatimTextOutput(\"value2\"), checkboxGroupButtons( inputId = \"somevalue3\", label = \"With icons:\", choices = names(mtcars), checkIcon = list( yes = icon(\"square-check\"), no = icon(\"square\") ) ), verbatimTextOutput(\"value3\") ) server <- function(input, output) { output$value1 <- renderPrint({ input$somevalue1 }) output$value2 <- renderPrint({ input$somevalue2 }) output$value3 <- renderPrint({ input$somevalue3 }) } if (interactive()) shinyApp(ui, server)"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/chooseSliderSkin.html","id":null,"dir":"Reference","previous_headings":"","what":"Theme selector for sliderInput — chooseSliderSkin","title":"Theme selector for sliderInput — chooseSliderSkin","text":"Customize appearance original shiny's sliderInput","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/chooseSliderSkin.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Theme selector for sliderInput — chooseSliderSkin","text":"","code":"chooseSliderSkin( skin = c(\"Shiny\", \"Flat\", \"Big\", \"Modern\", \"Sharp\", \"Round\", \"Square\"), color = NULL )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/chooseSliderSkin.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Theme selector for sliderInput — chooseSliderSkin","text":"skin skin apply. Choose among 5 different flavors, namely 'Shiny', 'Flat', 'Modern', 'Round' 'Square'. color color apply sliders. Works following skins: 'Shiny', 'Flat', 'Modern', 'HTML5'. 'Flat' CSS filter applied, desired color maybe little offset.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/chooseSliderSkin.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Theme selector for sliderInput — chooseSliderSkin","text":"currently possible apply multiple themes time.","code":""},{"path":[]},{"path":"https://dreamrs.github.io/shinyWidgets/reference/chooseSliderSkin.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Theme selector for sliderInput — chooseSliderSkin","text":"","code":"if (interactive()) { library(shiny) library(shinyWidgets) # With Modern design ui <- fluidPage( chooseSliderSkin(\"Modern\"), sliderInput(\"obs\", \"Customized single slider:\", min = 0, max = 100, value = 50 ), sliderInput(\"obs2\", \"Customized range slider:\", min = 0, max = 100, value = c(40, 80) ), plotOutput(\"distPlot\") ) server <- function(input, output) { output$distPlot <- renderPlot({ hist(rnorm(input$obs)) }) } shinyApp(ui, server) # Use Flat design & a custom color ui <- fluidPage( chooseSliderSkin(\"Flat\", color = \"#112446\"), sliderInput(\"obs\", \"Customized single slider:\", min = 0, max = 100, value = 50 ), sliderInput(\"obs2\", \"Customized range slider:\", min = 0, max = 100, value = c(40, 80) ), sliderInput(\"obs3\", \"An other slider:\", min = 0, max = 100, value = 50 ), plotOutput(\"distPlot\") ) server <- function(input, output) { output$distPlot <- renderPlot({ hist(rnorm(input$obs)) }) } shinyApp(ui, server) }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/circleButton.html","id":null,"dir":"Reference","previous_headings":"","what":"Circle Action button — circleButton","title":"Circle Action button — circleButton","text":"Create rounded action button.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/circleButton.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Circle Action button — circleButton","text":"","code":"circleButton(inputId, icon = NULL, status = \"default\", size = \"default\", ...)"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/circleButton.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Circle Action button — circleButton","text":"inputId input slot used access value. icon icon appear button. status Color button. size Size button : default, lg, sm, xs. ... Named attributes applied button.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/circleButton.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Circle Action button — circleButton","text":"","code":"if (interactive()) { library(shiny) library(shinyWidgets) ui <- fluidPage( tags$h3(\"Rounded actionBution\"), circleButton(inputId = \"btn1\", icon = icon(\"gear\")), circleButton( inputId = \"btn2\", icon = icon(\"sliders\"), status = \"primary\" ), verbatimTextOutput(\"res1\"), verbatimTextOutput(\"res2\") ) server <- function(input, output, session) { output$res1 <- renderPrint({ paste(\"value button 1:\", input$btn1) }) output$res2 <- renderPrint({ paste(\"value button 2:\", input$btn2) }) } shinyApp(ui, server) }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/closeSweetAlert.html","id":null,"dir":"Reference","previous_headings":"","what":"Close Sweet Alert — closeSweetAlert","title":"Close Sweet Alert — closeSweetAlert","text":"Close Sweet Alert","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/closeSweetAlert.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Close Sweet Alert — closeSweetAlert","text":"","code":"closeSweetAlert(session = shiny::getDefaultReactiveDomain())"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/closeSweetAlert.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Close Sweet Alert — closeSweetAlert","text":"session session object passed function given shinyServer.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/colorPickr.html","id":null,"dir":"Reference","previous_headings":"","what":"Color Pickr — colorPickr","title":"Color Pickr — colorPickr","text":"widget pick color different themes options.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/colorPickr.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Color Pickr — colorPickr","text":"","code":"colorPickr( inputId, label, selected = \"#112446\", swatches = NULL, preview = TRUE, hue = TRUE, opacity = FALSE, interaction = NULL, theme = c(\"classic\", \"monolith\", \"nano\"), update = c(\"save\", \"changestop\", \"change\", \"swatchselect\"), position = \"bottom-middle\", hideOnSave = TRUE, useAsButton = FALSE, inline = FALSE, i18n = NULL, pickr_width = NULL, width = NULL )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/colorPickr.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Color Pickr — colorPickr","text":"inputId input slot used access value. label Display label color pickr, NULL label. selected Default selected value. swatches Optional color swatches. NULL, swatches disabled. preview Display comparison previous state new color. hue Display hue slider. opacity Display opacity slider. interaction List parameters show hide components bottom interaction bar. See link documentation. theme theme want use. Can 'classic', 'monolith' 'nano'. update update value server-side. position Defines position color-picker. hideOnSave Hide color-picker selecting color. useAsButton Show color-picker button instead input value displayed. inline Always show color-picker page full element. i18n List translations labels, see online documentation. pickr_width Color-picker width (correspond popup window). width Color-picker width (correspond input).","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/colorPickr.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Color Pickr — colorPickr","text":"color picker input widget can added UI shiny app.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/colorPickr.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Color Pickr — colorPickr","text":"Widget based JS library pickr Simonwep. See online documentation information: https://github.com/Simonwep/pickr.","code":""},{"path":[]},{"path":"https://dreamrs.github.io/shinyWidgets/reference/colorPickr.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Color Pickr — colorPickr","text":"","code":"library(shiny) library(shinyWidgets) ui <- fluidPage( tags$h2(\"Color pickr\"), fluidRow( column( width = 4, tags$h4(\"Appearance\"), colorPickr( inputId = \"id1\", label = \"Pick a color (classic theme):\", width = \"100%\" ), verbatimTextOutput(\"res1\"), colorPickr( inputId = \"id2\", label = \"Pick a color (monolith theme):\", theme = \"monolith\", width = \"100%\" ), verbatimTextOutput(\"res2\"), colorPickr( inputId = \"id3\", label = \"Pick a color (nano theme):\", theme = \"nano\", width = \"100%\" ), verbatimTextOutput(\"res3\"), colorPickr( inputId = \"id4\", label = \"Pick a color (swatches + opacity):\", swatches = scales::viridis_pal()(10), opacity = TRUE ), verbatimTextOutput(\"res4\"), colorPickr( inputId = \"id5\", label = \"Pick a color (only swatches):\", selected = \"#440154\", swatches = c( scales::viridis_pal()(9), scales::brewer_pal(palette = \"Blues\")(9), scales::brewer_pal(palette = \"Reds\")(9) ), update = \"change\", opacity = FALSE, preview = FALSE, hue = FALSE, interaction = list( hex= FALSE, rgba = FALSE, input = FALSE, save = FALSE, clear = FALSE ), pickr_width = \"245px\" ), verbatimTextOutput(\"res5\"), colorPickr( inputId = \"id6\", label = \"Pick a color (button):\", swatches = scales::viridis_pal()(10), theme = \"monolith\", useAsButton = TRUE ), verbatimTextOutput(\"res6\"), colorPickr( inputId = \"id7\", label = \"Pick a color (inline):\", swatches = scales::viridis_pal()(10), theme = \"monolith\", inline = TRUE, width = \"100%\" ), verbatimTextOutput(\"res7\") ), column( width = 4, tags$h4(\"Trigger server update\"), colorPickr( inputId = \"id11\", label = \"Pick a color (update on save):\", position = \"right-start\" ), verbatimTextOutput(\"res11\"), colorPickr( inputId = \"id12\", label = \"Pick a color (update on change):\", update = \"change\", interaction = list( clear = FALSE, save = FALSE ), position = \"right-start\" ), verbatimTextOutput(\"res12\"), colorPickr( inputId = \"id13\", label = \"Pick a color (update on change stop):\", update = \"changestop\", interaction = list( clear = FALSE, save = FALSE ), position = \"right-start\" ), verbatimTextOutput(\"res13\") ), column( width = 4, tags$h4(\"Update server-side\"), colorPickr( inputId = \"id21\", label = \"Pick a color (update value):\", width = \"100%\" ), verbatimTextOutput(\"res21\"), actionButton(\"red\", \"Update red\"), actionButton(\"green\", \"Update green\"), actionButton(\"blue\", \"Update blue\"), colorPickr( inputId = \"id22\", label = \"Pick a color (enable/disable):\", width = \"100%\" ), verbatimTextOutput(\"res22\"), actionButton(\"enable\", \"Enable\"), actionButton(\"disable\", \"Disable\") ) ) ) server <- function(input, output, session) { output$res1 <- renderPrint(input$id1) output$res2 <- renderPrint(input$id2) output$res3 <- renderPrint(input$id3) output$res4 <- renderPrint(input$id4) output$res5 <- renderPrint(input$id5) output$res6 <- renderPrint(input$id6) output$res7 <- renderPrint(input$id7) output$res11 <- renderPrint(input$id11) output$res12 <- renderPrint(input$id12) output$res13 <- renderPrint(input$id13) output$res21 <- renderPrint(input$id21) observeEvent(input$red, { updateColorPickr(session, \"id21\", \"firebrick\") }) observeEvent(input$green, { updateColorPickr(session, \"id21\", \"forestgreen\") }) observeEvent(input$blue, { updateColorPickr(session, \"id21\", \"steelblue\") }) output$res22 <- renderPrint(input$id22) observeEvent(input$enable, { updateColorPickr(session, \"id22\", action = \"enable\") }) observeEvent(input$disable, { updateColorPickr(session, \"id22\", action = \"disable\") }) } if (interactive()) shinyApp(ui, server)"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/colorSelectorInput.html","id":null,"dir":"Reference","previous_headings":"","what":"Color Selector Input — colorSelectorInput","title":"Color Selector Input — colorSelectorInput","text":"Choose restrictive set colors.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/colorSelectorInput.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Color Selector Input — colorSelectorInput","text":"","code":"colorSelectorInput( inputId, label, choices, selected = NULL, mode = c(\"radio\", \"checkbox\"), display_label = FALSE, ncol = 10 ) colorSelectorExample()"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/colorSelectorInput.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Color Selector Input — colorSelectorInput","text":"inputId input slot used access value. label Display label control, NULL label. choices list colors, can list named list, see example. selected Default selected color, NULL first color mode = 'radio' none mode = 'checkbox' mode 'radio' one choice, 'checkbox' selecting multiple values. display_label Display list's names palette color. ncol choices list vector, go line n elements.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/colorSelectorInput.html","id":"functions","dir":"Reference","previous_headings":"","what":"Functions","title":"Color Selector Input — colorSelectorInput","text":"colorSelectorExample(): Examples use colorSelectorInput","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/colorSelectorInput.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Color Selector Input — colorSelectorInput","text":"","code":"if (interactive()) { # Full example colorSelectorExample() # Simple example ui <- fluidPage( colorSelectorInput( inputId = \"mycolor1\", label = \"Pick a color :\", choices = c(\"steelblue\", \"cornflowerblue\", \"firebrick\", \"palegoldenrod\", \"forestgreen\") ), verbatimTextOutput(\"result1\") ) server <- function(input, output, session) { output$result1 <- renderPrint({ input$mycolor1 }) } shinyApp(ui = ui, server = server) }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/create_tree.html","id":null,"dir":"Reference","previous_headings":"","what":"Create choice structure for treeInput() — create_tree","title":"Create choice structure for treeInput() — create_tree","text":"Create choice structure treeInput()","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/create_tree.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create choice structure for treeInput() — create_tree","text":"","code":"create_tree(data, levels = names(data), levels_id = NULL, ...)"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/create_tree.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create choice structure for treeInput() — create_tree","text":"data data.frame. levels Variables identifying hierarchical levels, values variables used text displayed. levels_id Variable use ID nodes. Careful! Spaces allowed IDs. ... Addtional arguments.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/create_tree.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create choice structure for treeInput() — create_tree","text":"list can used treeInput().","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/demoAirDatepicker.html","id":null,"dir":"Reference","previous_headings":"","what":"Some examples on how to use airDatepickerInput — demoAirDatepicker","title":"Some examples on how to use airDatepickerInput — demoAirDatepicker","text":"examples use airDatepickerInput","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/demoAirDatepicker.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Some examples on how to use airDatepickerInput — demoAirDatepicker","text":"","code":"demoAirDatepicker(example = \"datepicker\")"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/demoAirDatepicker.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Some examples on how to use airDatepickerInput — demoAirDatepicker","text":"example Name example : \"datepicker\", \"timepicker\", \"months\", \"years\", \"update\".","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/demoAirDatepicker.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Some examples on how to use airDatepickerInput — demoAirDatepicker","text":"","code":"if (interactive()) { demoAirDatepicker(\"datepicker\") }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/demoNoUiSlider.html","id":null,"dir":"Reference","previous_headings":"","what":"Some examples on how to use noUiSliderInput — demoNoUiSlider","title":"Some examples on how to use noUiSliderInput — demoNoUiSlider","text":"examples use noUiSliderInput","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/demoNoUiSlider.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Some examples on how to use noUiSliderInput — demoNoUiSlider","text":"","code":"demoNoUiSlider(example = \"color\")"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/demoNoUiSlider.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Some examples on how to use noUiSliderInput — demoNoUiSlider","text":"example Name example : \"color\", \"update\", \"behaviour\", \"\", \"format\".","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/demoNoUiSlider.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Some examples on how to use noUiSliderInput — demoNoUiSlider","text":"","code":"if (interactive()) { demoNoUiSlider(\"color\") }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/demoNumericRange.html","id":null,"dir":"Reference","previous_headings":"","what":"An example showing how numericRangeInput works — demoNumericRange","title":"An example showing how numericRangeInput works — demoNumericRange","text":"example showing numericRangeInput works","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/demoNumericRange.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"An example showing how numericRangeInput works — demoNumericRange","text":"","code":"demoNumericRange()"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/demoNumericRange.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"An example showing how numericRangeInput works — demoNumericRange","text":"","code":"if (interactive()) { demoNumericRange() }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/demoVirtualSelect.html","id":null,"dir":"Reference","previous_headings":"","what":"Demo for virtualSelectInput() — demoVirtualSelect","title":"Demo for virtualSelectInput() — demoVirtualSelect","text":"Demo virtualSelectInput()","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/demoVirtualSelect.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Demo for virtualSelectInput() — demoVirtualSelect","text":"","code":"demoVirtualSelect( name = c(\"default\", \"update\", \"choices-format\", \"prepare-choices\", \"bslib-theming\") )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/demoVirtualSelect.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Demo for virtualSelectInput() — demoVirtualSelect","text":"name Name demo app launch.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/demoVirtualSelect.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Demo for virtualSelectInput() — demoVirtualSelect","text":"value.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/demoVirtualSelect.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Demo for virtualSelectInput() — demoVirtualSelect","text":"","code":"if (FALSE) { # Default usage demoVirtualSelect(\"default\") # Update widget from server demoVirtualSelect(\"update\") # Differents ways of specifying choices demoVirtualSelect(\"choices-format\") # Prepare choices from a data.frame demoVirtualSelect(\"prepare-choices\") # Theming with bslib demoVirtualSelect(\"bslib-theming\") }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/deprecated.html","id":null,"dir":"Reference","previous_headings":"","what":"Deprecated function — deprecated","title":"Deprecated function — deprecated","text":"functions deprecated removed futur release shinyWidgets","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/deprecated.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Deprecated function — deprecated","text":"","code":"useShinydashboard() useShinydashboardPlus() useTablerDash() useArgonDash() useBs4Dash(...) setShadow(id = NULL, class = NULL) setSliderColor(color, sliderId) colorSelectorDrop(...)"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/deprecated.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Deprecated function — deprecated","text":"... Deprecated arguments id, class Deprecated arguments color, sliderId Deprecated arguments","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/downloadBttn.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a download actionBttn — downloadBttn","title":"Create a download actionBttn — downloadBttn","text":"Create download button actionBttn().","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/downloadBttn.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a download actionBttn — downloadBttn","text":"","code":"downloadBttn( outputId, label = \"Download\", style = \"unite\", color = \"primary\", size = \"md\", block = FALSE, no_outline = TRUE, icon = shiny::icon(\"download\") )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/downloadBttn.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a download actionBttn — downloadBttn","text":"outputId name output slot shiny::downloadHandler() assigned . label contents button, usually text label. style Style button, choose simple, bordered, minimal, stretch, jelly, gradient, fill, material-circle, material-flat, pill, float, unite. color Color button : default, primary, warning, danger, success, royal. size Size button : xs,sm, md, lg. block Logical, full width button. no_outline Logical, show outline navigating keyboard/interact using mouse touch. icon optional icon appear button.","code":""},{"path":[]},{"path":"https://dreamrs.github.io/shinyWidgets/reference/downloadBttn.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a download actionBttn — downloadBttn","text":"","code":"if (interactive()) { library(shiny) library(shinyWidgets) ui <- fluidPage( tags$h2(\"Download bttn\"), downloadBttn( outputId = \"downloadData\", style = \"bordered\", color = \"primary\" ) ) server <- function(input, output, session) { output$downloadData <- downloadHandler( filename = function() { paste('data-', Sys.Date(), '.csv', sep='') }, content = function(con) { write.csv(mtcars, con) } ) } shinyApp(ui, server) }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/drop-menu-interaction.html","id":null,"dir":"Reference","previous_headings":"","what":"Interact with Drop Menu — drop-menu-interaction","title":"Interact with Drop Menu — drop-menu-interaction","text":"Interact Drop Menu","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/drop-menu-interaction.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Interact with Drop Menu — drop-menu-interaction","text":"","code":"enableDropMenu(id, session = shiny::getDefaultReactiveDomain()) disableDropMenu(id, session = shiny::getDefaultReactiveDomain()) showDropMenu(id, session = shiny::getDefaultReactiveDomain()) hideDropMenu(id, session = shiny::getDefaultReactiveDomain())"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/drop-menu-interaction.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Interact with Drop Menu — drop-menu-interaction","text":"id Drop menu ID, tag's ID followed \"_dropmenu\". session Shiny session.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/drop-menu-interaction.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Interact with Drop Menu — drop-menu-interaction","text":"","code":"if (interactive()) { library(shiny) library(shinyWidgets) ui <- fluidPage( tags$h2(\"Drop Menu interactions\"), dropMenu( actionButton(\"myid\", \"See what's inside\"), \"Drop menu content\", actionButton(\"hide\", \"Close menu\"), position = \"right middle\" ), tags$br(), tags$p(\"Is drop menu opened?\"), verbatimTextOutput(\"isOpen\"), actionButton(\"show\", \"show menu\"), tags$br(), tags$br(), dropMenu( actionButton(\"dontclose\", \"Only closeable from server\"), \"Drop menu content\", actionButton(\"close\", \"Close menu\"), position = \"right middle\", hideOnClick = FALSE ) ) server <- function(input, output, session) { output$isOpen <- renderPrint({ input$myid_dropmenu }) observeEvent(input$show, { showDropMenu(\"myid_dropmenu\") }) observeEvent(input$hide, { hideDropMenu(\"myid_dropmenu\") }) observeEvent(input$close, { hideDropMenu(\"dontclose_dropmenu\") }) } shinyApp(ui, server) }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/dropMenu.html","id":null,"dir":"Reference","previous_headings":"","what":"Drop Menu — dropMenu","title":"Drop Menu — dropMenu","text":"pop-menu hide inputs elements .","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/dropMenu.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Drop Menu — dropMenu","text":"","code":"dropMenu( tag, ..., padding = \"5px\", placement = c(\"bottom\", \"bottom-start\", \"bottom-end\", \"top\", \"top-start\", \"top-end\", \"right\", \"right-start\", \"right-end\", \"left\", \"left-start\", \"left-end\"), trigger = \"click\", arrow = TRUE, theme = c(\"light\", \"light-border\", \"material\", \"translucent\"), hideOnClick = TRUE, maxWidth = \"none\", options = NULL )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/dropMenu.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Drop Menu — dropMenu","text":"tag HTML tag attach menu. ... UI elements displayed menu. padding Amount padding apply. Can numeric (pixels) character (e.g. \"3em\"). placement Positions menu relative reference element (tag). trigger event(s) cause menu show. arrow Determines menu arrow. theme CSS theme use. hideOnClick Determines menu hide mousedown event fired outside (.e. clicking reference element body page). maxWidth Determines maximum width menu. options Additional options, see dropMenuOptions.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/dropMenu.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Drop Menu — dropMenu","text":"UI definition.","code":""},{"path":[]},{"path":"https://dreamrs.github.io/shinyWidgets/reference/dropMenu.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Drop Menu — dropMenu","text":"","code":"if (interactive()) { library(shiny) library(shinyWidgets) ui <- fluidPage( tags$h3(\"drop example\"), dropMenu( actionButton(\"go0\", \"See what\"), tags$div( tags$h3(\"This is a dropdown\"), tags$ul( tags$li(\"You can use HTML inside\"), tags$li(\"Maybe Shiny inputs\"), tags$li(\"And maybe outputs\"), tags$li(\"and should work in markdown\") ) ), theme = \"light-border\", placement = \"right\", arrow = FALSE ), tags$br(), dropMenu( actionButton(\"go\", \"See what\"), tags$h3(\"Some inputs\"), sliderInput( \"obs\", \"Number of observations:\", min = 0, max = 1000, value = 500 ), selectInput( \"variable\", \"Variable:\", c(\"Cylinders\" = \"cyl\", \"Transmission\" = \"am\", \"Gears\" = \"gear\") ), pickerInput( inputId = \"pckr\", label = \"Select all option\", choices = rownames(mtcars), multiple = TRUE, options = list(`actions-box` = TRUE) ), radioButtons( \"dist\", \"Distribution type:\", c(\"Normal\" = \"norm\", \"Uniform\" = \"unif\", \"Log-normal\" = \"lnorm\", \"Exponential\" = \"exp\") ) ), verbatimTextOutput(\"slider\"), verbatimTextOutput(\"select\"), verbatimTextOutput(\"picker\"), verbatimTextOutput(\"radio\") ) server <- function(input, output, session) { output$slider <- renderPrint(input$obs) output$select <- renderPrint(input$variable) output$picker <- renderPrint(input$pckr) output$radio <- renderPrint(input$dist) } shinyApp(ui, server) }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/dropMenuOptions.html","id":null,"dir":"Reference","previous_headings":"","what":"Drop menu options — dropMenuOptions","title":"Drop menu options — dropMenuOptions","text":"options passed underlying JavaScript library powering dropMenu : tippy.js. See available options https://atomiks.github.io/tippyjs/-props/.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/dropMenuOptions.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Drop menu options — dropMenuOptions","text":"","code":"dropMenuOptions(duration = c(275, 250), animation = \"fade\", flip = FALSE, ...)"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/dropMenuOptions.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Drop menu options — dropMenuOptions","text":"duration Duration CSS transition animation ms. animation type transition animation. flip Determines tippy flips placed within viewport best can enough space. ... Additional arguments.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/dropMenuOptions.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Drop menu options — dropMenuOptions","text":"list options used dropMenu.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/dropdown.html","id":null,"dir":"Reference","previous_headings":"","what":"Dropdown — dropdown","title":"Dropdown — dropdown","text":"Create dropdown menu","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/dropdown.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Dropdown — dropdown","text":"","code":"dropdown( ..., style = \"default\", status = \"default\", size = \"md\", icon = NULL, label = NULL, tooltip = FALSE, right = FALSE, up = FALSE, width = NULL, animate = FALSE, inputId = NULL, block = FALSE, no_outline = TRUE )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/dropdown.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Dropdown — dropdown","text":"... List tag displayed dropdown menu. style Style button, choose simple, bordered, minimal, stretch, jelly, gradient, fill, material-circle, material-flat, pill, float, unite. status Color button, see actionBttn(). size Size button : xs,sm, md, lg. icon optional icon appear button. label contents button, usually text label. tooltip Put tooltip button, can customize tooltip tooltipOptions(). right Logical. dropdown menu starts right. Logical. Display dropdown menu . width Width dropdown menu content. animate Add animation dropdown, can logical result animateOptions(). inputId Optional, id button, button act like actionButton, can use id toggle dropdown menu server-side. block Logical, full width button. no_outline Logical, show outline navigating keyboard/interact using mouse touch.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/dropdown.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Dropdown — dropdown","text":"function similar dropdownButton() use Bootstrap, can use pickerInput() . Moreover can add animations appearance / disappearance dropdown animate.css.","code":""},{"path":[]},{"path":"https://dreamrs.github.io/shinyWidgets/reference/dropdown.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Dropdown — dropdown","text":"","code":"## Only run examples in interactive R sessions if (interactive()) { library(\"shiny\") library(\"shinyWidgets\") ui <- fluidPage( tags$h2(\"pickerInput in dropdown\"), br(), dropdown( tags$h3(\"List of Input\"), pickerInput(inputId = 'xcol2', label = 'X Variable', choices = names(iris), options = list(`style` = \"btn-info\")), pickerInput(inputId = 'ycol2', label = 'Y Variable', choices = names(iris), selected = names(iris)[[2]], options = list(`style` = \"btn-warning\")), sliderInput(inputId = 'clusters2', label = 'Cluster count', value = 3, min = 1, max = 9), style = \"unite\", icon = icon(\"gear\"), status = \"danger\", width = \"300px\", animate = animateOptions( enter = animations$fading_entrances$fadeInLeftBig, exit = animations$fading_exits$fadeOutRightBig ) ), plotOutput(outputId = 'plot2') ) server <- function(input, output, session) { selectedData2 <- reactive({ iris[, c(input$xcol2, input$ycol2)] }) clusters2 <- reactive({ kmeans(selectedData2(), input$clusters2) }) output$plot2 <- renderPlot({ palette(c(\"#E41A1C\", \"#377EB8\", \"#4DAF4A\", \"#984EA3\", \"#FF7F00\", \"#FFFF33\", \"#A65628\", \"#F781BF\", \"#999999\")) par(mar = c(5.1, 4.1, 0, 1)) plot(selectedData2(), col = clusters2()$cluster, pch = 20, cex = 3) points(clusters2()$centers, pch = 4, cex = 4, lwd = 4) }) } shinyApp(ui = ui, server = server) }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/dropdownButton.html","id":null,"dir":"Reference","previous_headings":"","what":"Dropdown Button — dropdownButton","title":"Dropdown Button — dropdownButton","text":"Create dropdown menu Bootstrap can put input elements.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/dropdownButton.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Dropdown Button — dropdownButton","text":"","code":"dropdownButton( ..., circle = TRUE, status = \"default\", size = \"default\", icon = NULL, label = NULL, tooltip = FALSE, right = FALSE, up = FALSE, width = NULL, margin = \"10px\", inline = FALSE, inputId = NULL )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/dropdownButton.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Dropdown Button — dropdownButton","text":"... List tag displayed dropdown menu. circle Logical. Use circle button status Add class buttons, can use Bootstrap status like 'info', 'primary', 'danger', 'warning' 'success'. use arbitrary strings add custom class, e.g. : status = 'myClass', buttons class btn-myClass. size Size button : default, lg, sm, xs. icon icon appear button. label Label appear button. circle = TRUE tooltip = TRUE, label used tooltip. tooltip Put tooltip button, can customize tooltip tooltipOptions. right Logical. dropdown menu starts right. Logical. Display dropdown menu . width Width dropdown menu content. margin Value dropdown margin-right margin-left menu content. inline use inline (span()) block container (div()) output. inputId Optional, id button, button act like actionButton, can use id toggle dropdown menu server-side toggleDropdownButton.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/dropdownButton.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Dropdown Button — dropdownButton","text":"possible know dropdown open closed server-side input$_state.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/dropdownButton.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Dropdown Button — dropdownButton","text":"pickerInput work inside dropdownButton also dropdown nest . Instead use dropdown, similar features built differently works.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/dropdownButton.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Dropdown Button — dropdownButton","text":"","code":"## Only run examples in interactive R sessions if (interactive()) { library(shiny) library(shinyWidgets) ui <- fluidPage( dropdownButton( inputId = \"mydropdown\", label = \"Controls\", icon = icon(\"sliders\"), status = \"primary\", circle = FALSE, sliderInput( inputId = \"n\", label = \"Number of observations\", min = 10, max = 100, value = 30 ), prettyToggle( inputId = \"na\", label_on = \"NAs keeped\", label_off = \"NAs removed\", icon_on = icon(\"check\"), icon_off = icon(\"xmark\") ) ), tags$div(style = \"height: 140px;\"), # spacing verbatimTextOutput(outputId = \"out\"), verbatimTextOutput(outputId = \"state\") ) server <- function(input, output, session) { output$out <- renderPrint({ cat( \" # n\\n\", input$n, \"\\n\", \"# na\\n\", input$na ) }) output$state <- renderPrint({ cat(\"Open:\", input$mydropdown_state) }) } shinyApp(ui, server) }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/execute_safely.html","id":null,"dir":"Reference","previous_headings":"","what":"Execute an expression safely in server — execute_safely","title":"Execute an expression safely in server — execute_safely","text":"Execute expression without generating error, instead display error user alert.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/execute_safely.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Execute an expression safely in server — execute_safely","text":"","code":"execute_safely( expr, title = \"Error\", message = \"An error occured, detail below:\", include_error = TRUE, error_return = NULL, session = shiny::getDefaultReactiveDomain() )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/execute_safely.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Execute an expression safely in server — execute_safely","text":"expr Expression evaluate title Title display alert case error. message Message display title. include_error Include error message generated R. error_return Value return case error. session Shiny session.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/execute_safely.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Execute an expression safely in server — execute_safely","text":"Result expr error, otherwise value error_return (NULL default use req reactive context).","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/execute_safely.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Execute an expression safely in server — execute_safely","text":"","code":"library(shiny) library(shinyWidgets) ui <- fluidPage( tags$h2(\"Execute code safely in server\"), fileInput( inputId = \"file\", label = \"Try to import something else than a text file (Excel for example)\" ), verbatimTextOutput(outputId = \"file_value\") ) server <- function(input, output, session) { options(warn = 2) # turns warnings into errors onStop(function() { options(warn = 0) }) r <- reactive({ req(input$file) execute_safely( read.csv(input$file$datapath) ) }) output$file_value <- renderPrint({ head(r()) }) } if (interactive()) shinyApp(ui, server)"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/formaNumericInputUpdate.html","id":null,"dir":"Reference","previous_headings":"","what":"Update a Formatted Numeric Input Widget — updateCurrencyInput","title":"Update a Formatted Numeric Input Widget — updateCurrencyInput","text":"Update Formatted Numeric Input Widget","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/formaNumericInputUpdate.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Update a Formatted Numeric Input Widget — updateCurrencyInput","text":"","code":"updateCurrencyInput( session = getDefaultReactiveDomain(), inputId, label = NULL, value = NULL, format = NULL ) updateFormatNumericInput( session = getDefaultReactiveDomain(), inputId, label = NULL, value = NULL, format = NULL )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/formaNumericInputUpdate.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Update a Formatted Numeric Input Widget — updateCurrencyInput","text":"session Standard shiny session. inputId id input object. label label set input object. value value set input object. format format change input object .","code":""},{"path":[]},{"path":"https://dreamrs.github.io/shinyWidgets/reference/formaNumericInputUpdate.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Update a Formatted Numeric Input Widget — updateCurrencyInput","text":"","code":"if (interactive()) { library(shiny) library(shinyWidgets) ui <- fluidPage( tags$h2(\"Currency Input\"), currencyInput(\"id1\", \"Euro:\", value = 1234, format = \"euro\", width = 200, align = \"right\"), verbatimTextOutput(\"res1\"), actionButton(\"bttn0\", \"Change Input to Euros\"), actionButton(\"bttn1\", \"Change Input to Dollars\"), actionButton(\"bttn2\", \"Change Input to Yen\") ) server <- function(input, output, session) { output$res1 <- renderPrint(input$id1) observeEvent(input$bttn0, { updateCurrencyInput( session = session, inputId = \"id1\", label = \"Euro:\", format = \"euro\" ) }) observeEvent(input$bttn1, { updateCurrencyInput( session = session, inputId = \"id1\", label = \"Dollar:\", format = \"dollar\" ) }) observeEvent(input$bttn2, { updateCurrencyInput( session = session, inputId = \"id1\", label = \"Yen:\", format = \"Japanese\" ) }) } shinyApp(ui, server) }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/formatNumericInput.html","id":null,"dir":"Reference","previous_headings":"","what":"Format Numeric Inputs — currencyInput","title":"Format Numeric Inputs — currencyInput","text":"Shiny widgets --type formatting currency numeric values. modifiable version see autonumericInput(). two functions exact thing named differently intuitive use (currency money, formatNumeric percentage ).","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/formatNumericInput.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Format Numeric Inputs — currencyInput","text":"","code":"currencyInput( inputId, label, value, format = \"euro\", width = NULL, align = \"center\" ) formatNumericInput( inputId, label, value, format = \"commaDecimalCharDotSeparator\", width = NULL, align = \"center\" )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/formatNumericInput.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Format Numeric Inputs — currencyInput","text":"inputId input slot used access value. label Display label control, NULL label. value Initial value (unformatted). format character string specifying currency format input. See \"Details\" possible values. width width input box, eg. \"200px\" \"100%\". align alignment text inside input box, one \"center\", \"left\", \"right\". Defaults \"center\".","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/formatNumericInput.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Format Numeric Inputs — currencyInput","text":"currency input widget can added UI shiny app.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/formatNumericInput.html","id":"details","dir":"Reference","previous_headings":"","what":"Details","title":"Format Numeric Inputs — currencyInput","text":"regards format, currently 41 sets predefined options can used, variations one another. common : \"French\" \"Spanish\" \"NorthAmerican\" \"British\" \"Swiss\" \"Japanese\" \"Chinese\" \"Brazilian\" \"Turkish\" \"euro\" (\"French\") \"dollar\" (\"NorthAmerican\") \"percentageEU2dec\" \"percentageUS2dec\" \"dotDecimalCharCommaSeparator\" \"commaDecimalCharDotSeparator\" see full list please visit section AutoNumeric Github Page.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/formatNumericInput.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"Format Numeric Inputs — currencyInput","text":"Bonneau, Alexandre. 2018. \"AutoNumeric.js javascript Package\". https://autonumeric.org/.","code":""},{"path":[]},{"path":"https://dreamrs.github.io/shinyWidgets/reference/formatNumericInput.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Format Numeric Inputs — currencyInput","text":"","code":"if (interactive()) { library(shiny) library(shinyWidgets) ui <- fluidPage( tags$h2(\"Currency Input\"), currencyInput(\"id1\", \"Euro:\", value = 1234, format = \"euro\", width = 200, align = \"right\"), verbatimTextOutput(\"res1\"), currencyInput(\"id2\", \"Dollar:\", value = 1234, format = \"dollar\", width = 200, align = \"right\"), verbatimTextOutput(\"res2\"), currencyInput(\"id3\", \"Yen:\", value = 1234, format = \"Japanese\", width = 200, align = \"right\"), verbatimTextOutput(\"res3\"), br(), tags$h2(\"Formatted Numeric Input\"), formatNumericInput(\"id4\", \"Numeric:\", value = 1234, width = 200), verbatimTextOutput(\"res4\"), formatNumericInput(\"id5\", \"Percent:\", value = 1234, width = 200, format = \"percentageEU2dec\"), verbatimTextOutput(\"res5\") ) server <- function(input, output, session) { output$res1 <- renderPrint(input$id1) output$res2 <- renderPrint(input$id2) output$res3 <- renderPrint(input$id3) output$res4 <- renderPrint(input$id4) output$res5 <- renderPrint(input$id5) } shinyApp(ui, server) }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/html-dependencies.html","id":null,"dir":"Reference","previous_headings":"","what":"HTML dependencies — html-dependencies","title":"HTML dependencies — html-dependencies","text":"functions used internally load dependencies widgets. exported. ones needed package fresh.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/html-dependencies.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"HTML dependencies — html-dependencies","text":"","code":"html_dependency_awesome() html_dependency_bttn() html_dependency_pretty() html_dependency_bsswitch() html_dependency_sweetalert2( theme = c(\"sweetalert2\", \"minimal\", \"dark\", \"bootstrap-4\", \"material-ui\", \"bulma\", \"borderless\") )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/html-dependencies.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"HTML dependencies — html-dependencies","text":"theme SweetAlert theme use.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/html-dependencies.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"HTML dependencies — html-dependencies","text":"htmlDependency.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/html-dependencies.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"HTML dependencies — html-dependencies","text":"","code":"# Use in UI or tags function library(shiny) fluidPage( html_dependency_awesome() ) #> <\/div>"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/html_dependency_winbox.html","id":null,"dir":"Reference","previous_headings":"","what":"Winbox JavaScript Dependencies — html_dependency_winbox","title":"Winbox JavaScript Dependencies — html_dependency_winbox","text":"Include dependencies, place anywhere shiny UI.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/html_dependency_winbox.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Winbox JavaScript Dependencies — html_dependency_winbox","text":"","code":"html_dependency_winbox( css_rules = \"body{min-height:100vh}.winbox.modal{display:block;overflow:unset}\" )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/html_dependency_winbox.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Winbox JavaScript Dependencies — html_dependency_winbox","text":"css_rules CSS rules included style tag document head. default set min-height body element.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/html_dependency_winbox.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Winbox JavaScript Dependencies — html_dependency_winbox","text":"","code":"library(shiny) library(shinyWidgets) ui <- fluidPage( html_dependency_winbox() ) server <- function(input, output, session) { WinBox( title = \"WinBox\", ui = tagList( tags$h3(\"Hello from WinBox!\") ) ) } if (interactive()) shinyApp(ui, server)"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/inputSweetAlert.html","id":null,"dir":"Reference","previous_headings":"","what":"Launch an input text dialog — inputSweetAlert","title":"Launch an input text dialog — inputSweetAlert","text":"Launch popup text input","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/inputSweetAlert.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Launch an input text dialog — inputSweetAlert","text":"","code":"inputSweetAlert( session = getDefaultReactiveDomain(), inputId, title = NULL, text = NULL, type = NULL, input = c(\"text\", \"password\", \"textarea\", \"radio\", \"checkbox\", \"select\", \"email\", \"url\"), inputOptions = NULL, inputPlaceholder = NULL, inputValidator = NULL, btn_labels = \"Ok\", btn_colors = NULL, reset_input = TRUE, ... )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/inputSweetAlert.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Launch an input text dialog — inputSweetAlert","text":"session session object passed function given shinyServer. inputId input slot used access value. Shiny module, use logic inputs : use namespace UI, server. title Title pop-. text Text pop-. type Type pop-: \"info\", \"success\", \"warning\", \"error\" \"question\". input Type input, possible values : \"text\", \"password\",\"textarea\", \"radio\", \"checkbox\" \"select\". inputOptions Options input. \"radio\" \"select\" choices. inputPlaceholder Placeholder input, use \"text\" \"checkbox\". inputValidator JavaScript function validate input. Must character wrapped (). btn_labels Label(s) button(s). btn_colors Color(s) button(s). reset_input Set input value NULL alert displayed. ... arguments passed JavaScript method.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/inputSweetAlert.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Launch an input text dialog — inputSweetAlert","text":"function use JavaScript sweetalert2 library, see official documentation https://sweetalert2.github.io/.","code":""},{"path":[]},{"path":"https://dreamrs.github.io/shinyWidgets/reference/inputSweetAlert.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Launch an input text dialog — inputSweetAlert","text":"","code":"# Input in alert ---- library(shiny) library(shinyWidgets) ui <- fluidPage( tags$h1(\"Input sweet alert\"), actionButton(\"btn_text\", \"Text Input\"), verbatimTextOutput(outputId = \"text\"), actionButton(\"btn_password\", \"Password Input\"), verbatimTextOutput(outputId = \"password\"), actionButton(\"btn_radio\", \"Radio Input\"), verbatimTextOutput(outputId = \"radio\"), actionButton(\"btn_checkbox\", \"Checkbox Input\"), verbatimTextOutput(outputId = \"checkbox\"), actionButton(\"btn_select\", \"Select Input\"), verbatimTextOutput(outputId = \"select\"), actionButton(\"btn_email\", \"Email Input\"), verbatimTextOutput(outputId = \"email\") ) server <- function(input, output, session) { observeEvent(input$btn_text, { inputSweetAlert( session = session, \"mytext\", input = \"text\", title = \"What's your name ?\", inputPlaceholder = \"e.g.: Victor\", allowOutsideClick = FALSE, showCloseButton = TRUE ) }) output$text <- renderPrint(input$mytext) observeEvent(input$btn_password, { inputSweetAlert( session = session, \"mypassword\", input = \"password\", title = \"What's your password ?\" ) }) output$password <- renderPrint(input$mypassword) observeEvent(input$btn_radio, { inputSweetAlert( session = session, \"myradio\", input = \"radio\", inputOptions = c(\"Banana\" , \"Orange\", \"Apple\"), title = \"What's your favorite fruit ?\", inputValidator = I( \"function(value) { if (!value) { return 'You need to choose something!'; } }\" ) ) }) output$radio <- renderPrint(input$myradio) observeEvent(input$btn_checkbox, { inputSweetAlert( session = session, \"mycheckbox\", input = \"checkbox\", inputPlaceholder = \"Yes I agree\", title = \"Do you agree ?\" ) }) output$checkbox <- renderPrint(input$mycheckbox) observeEvent(input$btn_select, { inputSweetAlert( session = session, \"myselect\", input = \"select\", inputOptions = c(\"Banana\" , \"Orange\", \"Apple\"), title = \"What's your favorite fruit ?\" ) }) output$select <- renderPrint(input$myselect) observeEvent(input$btn_email, { inputSweetAlert( session = session, inputId = \"myemail\", input = \"email\", title = \"What's your email ?\", validationMessage= \"this does not look like a valid email!\" ) }) output$email <- renderPrint(input$myemail) } if (interactive()) shinyApp(ui = ui, server = server)"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/knobInput.html","id":null,"dir":"Reference","previous_headings":"","what":"Knob Input — knobInput","title":"Knob Input — knobInput","text":"Knob Input","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/knobInput.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Knob Input — knobInput","text":"","code":"knobInput( inputId, label, value, min = 0, max = 100, step = 1, angleOffset = 0, angleArc = 360, cursor = FALSE, thickness = NULL, lineCap = c(\"default\", \"round\"), displayInput = TRUE, displayPrevious = FALSE, rotation = c(\"clockwise\", \"anticlockwise\"), fgColor = NULL, inputColor = NULL, bgColor = NULL, pre = NULL, post = NULL, fontSize = NULL, readOnly = FALSE, skin = NULL, width = NULL, height = NULL, immediate = TRUE )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/knobInput.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Knob Input — knobInput","text":"inputId input slot used access value. label Display label control, NULL label. value Initial value. min Minimum allowed value, default 0. max Maximum allowed value, default 100. step Specifies interval selectable value, default 1. angleOffset Starting angle degrees, default 0. angleArc Arc size degrees, default 360. cursor Display mode \"cursor\", work properly width set pixel, (TRUE FALSE). thickness Gauge thickness, numeric value. lineCap Gauge stroke endings, 'default' 'round'. displayInput Hide input middle knob (TRUE FALSE). displayPrevious Display previous value transparency (TRUE FALSE). rotation Direction progression, 'clockwise' 'anticlockwise'. fgColor Foreground color. inputColor Input value (number) color. bgColor Background color. pre prefix string put front value. post suffix string put value. fontSize Font size, must valid CSS unit. readOnly Disable knob (TRUE FALSE). skin Change Knob skin, one option available : 'tron'. width, height width height input, e.g. 400px, 100%. value pixel recommended, otherwise knob able initialize case (hidden start example). immediate TRUE (default), server-side value updated time value change, FALSE value updated user release widget.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/knobInput.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Knob Input — knobInput","text":"Numeric value server-side.","code":""},{"path":[]},{"path":"https://dreamrs.github.io/shinyWidgets/reference/knobInput.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Knob Input — knobInput","text":"","code":"if (interactive()) { library(\"shiny\") library(\"shinyWidgets\") ui <- fluidPage( knobInput( inputId = \"myKnob\", label = \"Display previous:\", value = 50, min = -100, displayPrevious = TRUE, fgColor = \"#428BCA\", inputColor = \"#428BCA\" ), verbatimTextOutput(outputId = \"res\") ) server <- function(input, output, session) { output$res <- renderPrint(input$myKnob) } shinyApp(ui = ui, server = server) }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/materialSwitch.html","id":null,"dir":"Reference","previous_headings":"","what":"Material Design Switch Input Control — materialSwitch","title":"Material Design Switch Input Control — materialSwitch","text":"toggle switch turn selection .","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/materialSwitch.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Material Design Switch Input Control — materialSwitch","text":"","code":"materialSwitch( inputId, label = NULL, value = FALSE, status = \"default\", right = FALSE, inline = FALSE, width = NULL )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/materialSwitch.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Material Design Switch Input Control — materialSwitch","text":"inputId input slot used access value. label Input label. value TRUE FALSE. status Color, must valid Bootstrap status : default, primary, info, success, warning, danger. right label right? default FALSE. inline Display input inline, want place buttons next . width width input, e.g. 400px, 100%.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/materialSwitch.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Material Design Switch Input Control — materialSwitch","text":"switch control can added UI definition.","code":""},{"path":[]},{"path":"https://dreamrs.github.io/shinyWidgets/reference/materialSwitch.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Material Design Switch Input Control — materialSwitch","text":"","code":"if (interactive()) { library(shiny) library(shinyWidgets) ui <- fluidPage( tags$h3(\"Material switch examples\"), materialSwitch(inputId = \"switch1\", label = \"Night mode\"), verbatimTextOutput(\"value1\"), materialSwitch(inputId = \"switch2\", label = \"Night mode\", status = \"danger\"), verbatimTextOutput(\"value2\") ) server <- function(input, output) { output$value1 <- renderText({ input$switch1 }) output$value2 <- renderText({ input$switch2 }) } shinyApp(ui, server) }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/multiInput.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a multiselect input control — multiInput","title":"Create a multiselect input control — multiInput","text":"user-friendly replacement select boxes multiple attribute","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/multiInput.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a multiselect input control — multiInput","text":"","code":"multiInput( inputId, label, choices = NULL, selected = NULL, options = NULL, width = NULL, choiceNames = NULL, choiceValues = NULL, autocomplete = FALSE )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/multiInput.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a multiselect input control — multiInput","text":"inputId input slot used access value. label Display label control, NULL label. choices List values select . selected initially selected value. options List options passed multi (enable_search = FALSE disabling search bar example). width width input, e.g. 400px, 100%. choiceNames List names display user. choiceValues List values corresponding choiceNames. autocomplete Sets initial state autocomplete property.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/multiInput.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a multiselect input control — multiInput","text":"multiselect control can added UI shiny app.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/multiInput.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"Create a multiselect input control — multiInput","text":"Fabian Lindfors, \"user-friendly replacement select boxes multiple attribute enabled\", https://github.com/fabianlindfors/multi.js.","code":""},{"path":[]},{"path":"https://dreamrs.github.io/shinyWidgets/reference/multiInput.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a multiselect input control — multiInput","text":"","code":"## Only run examples in interactive R sessions if (interactive()) { library(\"shiny\") library(\"shinyWidgets\") # simple use ui <- fluidPage( multiInput( inputId = \"id\", label = \"Fruits :\", choices = c(\"Banana\", \"Blueberry\", \"Cherry\", \"Coconut\", \"Grapefruit\", \"Kiwi\", \"Lemon\", \"Lime\", \"Mango\", \"Orange\", \"Papaya\"), selected = \"Banana\", width = \"350px\" ), verbatimTextOutput(outputId = \"res\") ) server <- function(input, output, session) { output$res <- renderPrint({ input$id }) } shinyApp(ui = ui, server = server) # with options ui <- fluidPage( multiInput( inputId = \"id\", label = \"Fruits :\", choices = c(\"Banana\", \"Blueberry\", \"Cherry\", \"Coconut\", \"Grapefruit\", \"Kiwi\", \"Lemon\", \"Lime\", \"Mango\", \"Orange\", \"Papaya\"), selected = \"Banana\", width = \"400px\", options = list( enable_search = FALSE, non_selected_header = \"Choose between:\", selected_header = \"You have selected:\" ) ), verbatimTextOutput(outputId = \"res\") ) server <- function(input, output, session) { output$res <- renderPrint({ input$id }) } shinyApp(ui = ui, server = server) }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/noUiSliderInput.html","id":null,"dir":"Reference","previous_headings":"","what":"Numeric range slider — noUiSliderInput","title":"Numeric range slider — noUiSliderInput","text":"minimal numeric range slider lot features.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/noUiSliderInput.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Numeric range slider — noUiSliderInput","text":"","code":"noUiSliderInput( inputId, label = NULL, min, max, value, step = NULL, tooltips = TRUE, connect = TRUE, padding = 0, margin = NULL, limit = NULL, orientation = c(\"horizontal\", \"vertical\"), direction = c(\"ltr\", \"rtl\"), behaviour = \"tap\", range = NULL, pips = NULL, format = wNumbFormat(), update_on = c(\"end\", \"change\"), color = NULL, inline = FALSE, width = NULL, height = NULL )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/noUiSliderInput.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Numeric range slider — noUiSliderInput","text":"inputId input slot used access value. label Display label control, NULL label. min Minimal value can selected. max Maximal value can selected. value initial value slider. many cursors created values provided. step numeric, default, slider slides fluently. order make handles jump intervals, can use step option. tooltips logical, display slider's value tooltip slider. connect logical, vector length value + 1, color slider handle(s). padding numeric, padding limits close slider edges handles can . margin numeric, using two handles, minimum distance handles can set using margin option. limit numeric, limit option opposite margin option, limiting maximum distance two handles. orientation orientation setting can used set slider \"vertical\" \"horizontal\". direction \"ltr\" \"rtl\", default sliders top--bottom left--right, can change using direction option, decides upper side slider . behaviour Option handle user interaction, value several \"drag\", \"tap\", \"fixed\", \"snap\" \"none\". See https://refreshless.com/nouislider/behaviour-option/ examples. range list, can used define non-linear sliders. pips list, used generate points along slider. format numbers format, see wNumbFormat. update_on send value server: \"end\" (slider released) \"change\" (time value changes). color color Hex format slider. inline TRUE, possible position sliders side--side. width width input, e.g. 400px, 100%. height height input, e.g. 400px, 100%.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/noUiSliderInput.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Numeric range slider — noUiSliderInput","text":"ui definition","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/noUiSliderInput.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Numeric range slider — noUiSliderInput","text":"See updateNoUiSliderInput() updating slider value server-side. demoNoUiSlider() examples.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/noUiSliderInput.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Numeric range slider — noUiSliderInput","text":"","code":"library(shiny) library(shinyWidgets) ui <- fluidPage( tags$h2(\"noUiSliderInput example\"), noUiSliderInput( inputId = \"noui1\", min = 0, max = 100, value = 20 ), verbatimTextOutput(outputId = \"res1\"), tags$br(), noUiSliderInput( inputId = \"noui2\", label = \"Slider vertical:\", min = 0, max = 1000, step = 50, value = c(100, 400), margin = 100, orientation = \"vertical\", width = \"100px\", height = \"300px\" ), verbatimTextOutput(outputId = \"res2\") ) server <- function(input, output, session) { output$res1 <- renderPrint(input$noui1) output$res2 <- renderPrint(input$noui2) } if (interactive()) shinyApp(ui, server)"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/numericInputIcon.html","id":null,"dir":"Reference","previous_headings":"","what":"Create a numeric input control with icon(s) — numericInputIcon","title":"Create a numeric input control with icon(s) — numericInputIcon","text":"Extend form controls adding text icons , , sides classic numericInput.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/numericInputIcon.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Create a numeric input control with icon(s) — numericInputIcon","text":"","code":"numericInputIcon( inputId, label, value, min = NULL, max = NULL, step = NULL, icon = NULL, size = NULL, help_text = NULL, width = NULL )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/numericInputIcon.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Create a numeric input control with icon(s) — numericInputIcon","text":"inputId input slot used access value. label Display label control, NULL label. value Initial value. min Minimum allowed value max Maximum allowed value step Interval use stepping min max icon shiny::icon() (equivalent) list, containing icons text, displayed right left text input. size Size input, default NULL, can \"sm\" (small) \"lg\" (large). help_text Help text placed widget displayed value entered user outside min max. width width input, e.g. '400px', '100%'; see validateCssUnit().","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/numericInputIcon.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Create a numeric input control with icon(s) — numericInputIcon","text":"numeric input control can added UI definition.","code":""},{"path":[]},{"path":"https://dreamrs.github.io/shinyWidgets/reference/numericInputIcon.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Create a numeric input control with icon(s) — numericInputIcon","text":"","code":"library(shiny) library(shinyWidgets) ui <- fluidPage( # Test with different version of Bootstrap # theme = bslib::bs_theme(version = 5), tags$h2(\"numericInputIcon examples\"), fluidRow( column( width = 6, numericInputIcon( inputId = \"ex1\", label = \"With an icon\", value = 10, icon = icon(\"percent\") ), verbatimTextOutput(\"res1\"), numericInputIcon( inputId = \"ex2\", label = \"With an icon (right)\", value = 90, step = 10, icon = list(NULL, icon(\"percent\")) ), verbatimTextOutput(\"res2\"), numericInputIcon( inputId = \"ex3\", label = \"With text\", value = 50, icon = list(\"km/h\") ), verbatimTextOutput(\"res3\"), numericInputIcon( inputId = \"ex4\", label = \"Both side\", value = 10000, icon = list(icon(\"dollar-sign\"), \".00\") ), verbatimTextOutput(\"res4\"), numericInputIcon( inputId = \"ex5\", label = \"Sizing\", value = 10000, icon = list(icon(\"dollar-sign\"), \".00\"), size = \"lg\" ), verbatimTextOutput(\"res5\") ) ) ) server <- function(input, output, session) { output$res1 <- renderPrint(input$ex1) output$res2 <- renderPrint(input$ex2) output$res3 <- renderPrint(input$ex3) output$res4 <- renderPrint(input$ex4) output$res5 <- renderPrint(input$ex5) } if (interactive()) shinyApp(ui, server)"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/numericRangeInput.html","id":null,"dir":"Reference","previous_headings":"","what":"Numeric Range Input — numericRangeInput","title":"Numeric Range Input — numericRangeInput","text":"Create input group numeric inputs function range input.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/numericRangeInput.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Numeric Range Input — numericRangeInput","text":"","code":"numericRangeInput( inputId, label, value, width = NULL, separator = \" to \", min = NA, max = NA, step = NA )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/numericRangeInput.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Numeric Range Input — numericRangeInput","text":"inputId input slot used access value. label Display label control, NULL label. value initial value(s) range. numeric vector length one duplicated represent minimum maximum range; numeric vector two minimum maximum set minimum maximum range. width width input, e.g. '400px', '100%'; see validateCssUnit(). separator String display start end input boxes. min Minimum allowed value max Maximum allowed value step Interval use stepping min max","code":""},{"path":[]},{"path":"https://dreamrs.github.io/shinyWidgets/reference/numericRangeInput.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Numeric Range Input — numericRangeInput","text":"","code":"if (interactive()) { ### examples ---- # see ?demoNumericRange demoNumericRange() ### basic usage ---- library( shiny ) library( shinyWidgets ) ui <- fluidPage( tags$br(), numericRangeInput( inputId = \"my_id\", label = \"Numeric Range Input:\", value = c(100, 400) ), verbatimTextOutput(outputId = \"res1\") ) server <- function(input, output, session) { output$res1 <- renderPrint(input$my_id) } shinyApp(ui, server) }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/pickerGroup-module.html","id":null,"dir":"Reference","previous_headings":"","what":"Picker Group — pickerGroup-module","title":"Picker Group — pickerGroup-module","text":"Group mutually dependent pickerInput filtering data.frame's columns.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/pickerGroup-module.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Picker Group — pickerGroup-module","text":"","code":"pickerGroupUI( id, params, label = NULL, btn_label = \"Reset filters\", options = list(), inline = TRUE ) pickerGroupServer(input, output, session, data, vars)"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/pickerGroup-module.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Picker Group — pickerGroup-module","text":"id Module's id. params named list parameters passed pickerInput, can use : inputId (obligatory, must variable name), label, placeholder. label Character, global label top labels. btn_label Character, reset button label. options See pickerInput options argument. inline TRUE (default), pickerInputs horizontally positioned, otherwise vertically. input standard shiny input. output standard shiny output. session standard shiny session. data data.frame, object can coerced data.frame. vars character, columns use create filters, must correspond variables listed params.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/pickerGroup-module.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Picker Group — pickerGroup-module","text":"reactive function containing data filtered.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/pickerGroup-module.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Picker Group — pickerGroup-module","text":"","code":"if (interactive()) { library(shiny) library(shinyWidgets) data(\"mpg\", package = \"ggplot2\") ui <- fluidPage( fluidRow( column( width = 10, offset = 1, tags$h3(\"Filter data with picker group\"), panel( pickerGroupUI( id = \"my-filters\", params = list( manufacturer = list(inputId = \"manufacturer\", label = \"Manufacturer:\"), model = list(inputId = \"model\", label = \"Model:\"), trans = list(inputId = \"trans\", label = \"Trans:\"), class = list(inputId = \"class\", label = \"Class:\") ) ), status = \"primary\" ), DT::dataTableOutput(outputId = \"table\") ) ) ) server <- function(input, output, session) { res_mod <- callModule( module = pickerGroupServer, id = \"my-filters\", data = mpg, vars = c(\"manufacturer\", \"model\", \"trans\", \"class\") ) output$table <- DT::renderDataTable(res_mod()) } shinyApp(ui, server) } ### Not inline example if (interactive()) { library(shiny) library(shinyWidgets) data(\"mpg\", package = \"ggplot2\") ui <- fluidPage( fluidRow( column( width = 4, tags$h3(\"Filter data with picker group\"), pickerGroupUI( id = \"my-filters\", inline = FALSE, params = list( manufacturer = list(inputId = \"manufacturer\", label = \"Manufacturer:\"), model = list(inputId = \"model\", label = \"Model:\"), trans = list(inputId = \"trans\", label = \"Trans:\"), class = list(inputId = \"class\", label = \"Class:\") ) ) ), column( width = 8, DT::dataTableOutput(outputId = \"table\") ) ) ) server <- function(input, output, session) { res_mod <- callModule( module = pickerGroupServer, id = \"my-filters\", data = mpg, vars = c(\"manufacturer\", \"model\", \"trans\", \"class\") ) output$table <- DT::renderDataTable(res_mod()) } shinyApp(ui, server) }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/pickerInput.html","id":null,"dir":"Reference","previous_headings":"","what":"Select Picker Input Control — pickerInput","title":"Select Picker Input Control — pickerInput","text":"alternative shiny::selectInput() plenty options customize .","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/pickerInput.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Select Picker Input Control — pickerInput","text":"","code":"pickerInput( inputId, label = NULL, choices, selected = NULL, multiple = FALSE, options = list(), choicesOpt = NULL, width = NULL, inline = FALSE, stateInput = TRUE, autocomplete = FALSE )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/pickerInput.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Select Picker Input Control — pickerInput","text":"inputId input slot used access value. label Display label control, NULL label. choices List values select . elements list named name rather value displayed user. selected initially selected value (multiple values multiple = TRUE). specified defaults first value single-select lists values multiple select lists. multiple selection multiple items allowed? options List options, see pickerOptions available options. limit number selection possible, see example . choicesOpt list() options individual choices dropdown menu, element list length choices. can use following options : disabled: logical vector indicating choice can selected . style: CSS styles applied choice tag class: CSS class added choice tag icon: vector icon names display choices (use icon(\"arrow-right\"), use fa-arrow-right pickerOptions(iconBase = \"fas\")) subtext add text choice content: replace entire choice custom content (like raw HTML) tokens: add tokens associated choices used search results. width width input : 'auto', 'fit', '100px', '75%'. inline Display picker inline, label menu line use width = \"fit\". stateInput Activate deactivate special input value input$
_open know menu opened , see details. autocomplete Sets initial state autocomplete property.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/pickerInput.html","id":"value","dir":"Reference","previous_headings":"","what":"Value","title":"Select Picker Input Control — pickerInput","text":"select control can added UI definition.","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/pickerInput.html","id":"note","dir":"Reference","previous_headings":"","what":"Note","title":"Select Picker Input Control — pickerInput","text":"State picker (open close) accessible server-side input value: input$_open, can TRUE (opened) FALSE (closed).","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/pickerInput.html","id":"references","dir":"Reference","previous_headings":"","what":"References","title":"Select Picker Input Control — pickerInput","text":"SnapAppointments contributors. \"jQuery plugin brings select elements 21st century intuitive multiselection, searching, much . Now Bootstrap 4 support\". https://github.com/snapappointments/bootstrap-select/","code":""},{"path":[]},{"path":"https://dreamrs.github.io/shinyWidgets/reference/pickerInput.html","id":"ref-examples","dir":"Reference","previous_headings":"","what":"Examples","title":"Select Picker Input Control — pickerInput","text":"","code":"## Only run examples in interactive R sessions if (interactive()) { # You can run the gallery to see other examples shinyWidgetsGallery() # Basic usage library(\"shiny\") library(shinyWidgets) ui <- fluidPage( pickerInput( inputId = \"somevalue\", label = \"A label\", choices = c(\"a\", \"b\") ), verbatimTextOutput(\"value\") ) server <- function(input, output) { output$value <- renderPrint(input$somevalue) } shinyApp(ui, server) } ### Add actions box for selecting ---- ### deselecting all options if (interactive()) { library(shiny) library(shinyWidgets) ui <- fluidPage( tags$h2(\"Select / Deselect all\"), pickerInput( inputId = \"p1\", label = \"Select all option\", choices = rownames(mtcars), multiple = TRUE, options = list(`actions-box` = TRUE) ), verbatimTextOutput(\"r1\"), br(), pickerInput( inputId = \"p2\", label = \"Select all option / custom text\", choices = rownames(mtcars), multiple = TRUE, options = list( `actions-box` = TRUE, `deselect-all-text` = \"None...\", `select-all-text` = \"Yeah, all !\", `none-selected-text` = \"zero\" ) ), verbatimTextOutput(\"r2\") ) server <- function(input, output, session) { output$r1 <- renderPrint(input$p1) output$r2 <- renderPrint(input$p2) } shinyApp(ui = ui, server = server) } ### Customize the values displayed in the box ---- if (interactive()) { library(shiny) library(shinyWidgets) ui <- fluidPage( br(), pickerInput( inputId = \"p1\", label = \"Default\", multiple = TRUE, choices = rownames(mtcars), selected = rownames(mtcars)[1:5] ), br(), pickerInput( inputId = \"p1b\", label = \"Default with | separator\", multiple = TRUE, choices = rownames(mtcars), selected = rownames(mtcars)[1:5], options = list(`multiple-separator` = \" | \") ), br(), pickerInput( inputId = \"p2\", label = \"Static\", multiple = TRUE, choices = rownames(mtcars), selected = rownames(mtcars)[1:5], options = list(`selected-text-format`= \"static\", title = \"Won't change\") ), br(), pickerInput( inputId = \"p3\", label = \"Count\", multiple = TRUE, choices = rownames(mtcars), selected = rownames(mtcars)[1:5], options = list(`selected-text-format`= \"count\") ), br(), pickerInput( inputId = \"p3\", label = \"Customize count\", multiple = TRUE, choices = rownames(mtcars), selected = rownames(mtcars)[1:5], options = list( `selected-text-format`= \"count\", `count-selected-text` = \"{0} models choosed (on a total of {1})\" ) ) ) server <- function(input, output, session) { } shinyApp(ui = ui, server = server) } ### Limit the number of selections ---- if (interactive()) { library(shiny) library(shinyWidgets) ui <- fluidPage( pickerInput( inputId = \"groups\", label = \"Select one from each group below:\", choices = list( Group1 = c(\"1\", \"2\", \"3\", \"4\"), Group2 = c(\"A\", \"B\", \"C\", \"D\") ), multiple = TRUE, options = list(\"max-options-group\" = 1) ), verbatimTextOutput(outputId = \"res_grp\"), pickerInput( inputId = \"groups_2\", label = \"Select two from each group below:\", choices = list( Group1 = c(\"1\", \"2\", \"3\", \"4\"), Group2 = c(\"A\", \"B\", \"C\", \"D\") ), multiple = TRUE, options = list(\"max-options-group\" = 2) ), verbatimTextOutput(outputId = \"res_grp_2\"), pickerInput( inputId = \"classic\", label = \"Select max two option below:\", choices = c(\"A\", \"B\", \"C\", \"D\"), multiple = TRUE, options = list( \"max-options\" = 2, \"max-options-text\" = \"No more!\" ) ), verbatimTextOutput(outputId = \"res_classic\") ) server <- function(input, output) { output$res_grp <- renderPrint(input$groups) output$res_grp_2 <- renderPrint(input$groups_2) output$res_classic <- renderPrint(input$classic) } shinyApp(ui, server) }"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/pickerOptions.html","id":null,"dir":"Reference","previous_headings":"","what":"Options for pickerInput — pickerOptions","title":"Options for pickerInput — pickerOptions","text":"Wrapper options available : https://developer.snapappointments.com/bootstrap-select/options/","code":""},{"path":"https://dreamrs.github.io/shinyWidgets/reference/pickerOptions.html","id":"ref-usage","dir":"Reference","previous_headings":"","what":"Usage","title":"Options for pickerInput — pickerOptions","text":"","code":"pickerOptions( actionsBox = NULL, container = NULL, countSelectedText = NULL, deselectAllText = NULL, dropdownAlignRight = NULL, dropupAuto = NULL, header = NULL, hideDisabled = NULL, iconBase = NULL, liveSearch = NULL, liveSearchNormalize = NULL, liveSearchPlaceholder = NULL, liveSearchStyle = NULL, maxOptions = NULL, maxOptionsText = NULL, mobile = NULL, multipleSeparator = NULL, noneSelectedText = NULL, noneResultsText = NULL, selectAllText = NULL, selectedTextFormat = NULL, selectOnTab = NULL, showContent = NULL, showIcon = NULL, showSubtext = NULL, showTick = NULL, size = NULL, style = NULL, tickIcon = NULL, title = NULL, virtualScroll = NULL, width = NULL, windowPadding = NULL, ... )"},{"path":"https://dreamrs.github.io/shinyWidgets/reference/pickerOptions.html","id":"arguments","dir":"Reference","previous_headings":"","what":"Arguments","title":"Options for pickerInput — pickerOptions","text":"actionsBox set true, adds two buttons top dropdown menu (Select & Deselect ). Type: boolean; Default: false. container set string, appends select specific element selector, e.g., container: 'body' | '.main-body' Type: string | false; Default: false. countSelectedText Sets format text displayed selectedTextFormat count count > #. {0} selected amount. {1} total available selection. set function, first parameter number selected options, second total number options. function must return string. Type: string | function; Default: function. deselectAllText text button deselects options actionsBox enabled. Type: string; Default: 'Deselect '. dropdownAlignRight Align menu right instead left. set 'auto', menu automatically align right room menu's full width aligned left. Type: boolean | 'auto'; Default: false. dropupAuto checks see room, . dropup enough room fully open normally, room , dropup still opens normally. Otherwise, becomes dropup. dropupAuto set false, dropups must called manually. Type: boolean; Default: true. header adds header top menu; includes close button default Type: string; Default: false. hideDisabled removes disabled options optgroups menu data-hide-disabled: true Type: boolean; Default: false. iconBase Set base use different icon font instead Glyphicons. changing iconBase, might also want change tickIcon, case new icon font uses different naming scheme. Type: string; Default: 'glyphicon'. liveSearch set true, adds search box top selectpicker dropdown. Type: boolean; Default: false. liveSearchNormalize Setting liveSearchNormalize true allows accent-insensitive searching. Type: boolean; Default: false. liveSearchPlaceholder set string, placeholder attribute equal string added liveSearch input. Type: string; Default: null. liveSearchStyle set 'contains', searching reveal options contain searched text. example, searching pl return Apple, Plum, Plantain. set 'startsWith', searching pl return Plum Plantain. Type: string; Default: 'contains'. maxOptions set integer multi-select, number selected options exceed given value. option can also exist data-attribute