Package for Select2
Add package
meteor add natestrauser:select2
Add a specific class in your template for the select element you want to apply Select2 to:
<select class="select2-dropdown" name="state"> <option value="value1">value1</option> <option value="value2">value2</option> </select>
Enable Select2 for the specific class in the .js file of your template:
Template.MyTemplate.onRendered(function() { // Enable select2 $('.select2-dropdown').select2(); });
See also the Select2 documentation.
AboutSelect2 bindings to meteor
Resources License Stars Watchers Forks LanguagesYou can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4