vazco/Universe Selectize
This package is part of Universe, a framework based on Meteor platform maintained by Vazco.
It works standalone, but you can get max out of it when using the whole system.
http://universe-autoform-select.stg.vazco.eu/
https://github.com/vazco/meteor-universe-selectize-demo.git
In a Meteor app directory, enter:
$ meteor add vazco:universe-selectize
{{> universeSelectize name="test1" options=options multiple=false create=true}}
{{> universeSelectize name="test2" options=options multiple=true create=true remove=true}}
universe-selectize options | |||
---|---|---|---|
Option | Description | Type | Default |
options |
Required. A function returning either an array of options, or a Mongo.Cursor . The function is re-evaluated automatically using Tracker when its reactive data sources change. |
function |
undefined |
placeholder |
Optional. A placeholder option. | String |
null |
optionsPlaceholder |
Optional. Show placeholder in options dropdown. | Boolean or String |
false |
disabled |
Optional. | Boolean |
false |
multiple |
Optional. | Boolean |
false |
removeButton |
Optional. | Boolean |
true |
create |
Optional. Allows the user to create a new items that aren't in the list of options. | Boolean |
true |
createText |
Optional. Allows the user to change the create text. | String |
undefined |
createMethod |
Optional. Name of method to call after create new item. Method can return new value for item. | String |
undefined |
optionsMethod |
Optional. Name of method to get more items. Method should return array of options. | String |
undefined |
optionsMethodParams |
Optional. Additional params for optionsMethod. | Object |
undefined |
sortMethod |
Optional. | Function |
'label' |
Like every package maintained by Vazco, Universe Selectize is MIT licensed.