Select2 bindings to meteor
JavaScript
Switch branches/tags
Clone or download
#37 Compare This branch is 36 commits ahead, 1 commit behind vslinko:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib update to 4.0.3 Aug 16, 2016
.gitignore path override Jan 21, 2013
.gitmodules load submodule at 4.0.1 Feb 15, 2016
.versions update to 4.0.3 Aug 16, 2016
LICENSE.txt fixes #19 Feb 15, 2016
README.md Improve README.md for #28 Dec 29, 2017
package.js update to 4.0.3 Aug 16, 2016
versions.json #4 Oct 15, 2014

README.md

Select2

Package for Select2

How to install

Add package

meteor add natestrauser:select2

How to use

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.