0.0.1 • Published 8 years ago
ember-cli-selectpicker v0.0.1
Ember Select Picker
How to install
ember install ember-cli-selectpickeror
npm install ember-cli-selectpicker --saveDocuments
default select
<select>
<option>Mustard</option>
<option>Ketchup</option>
<option>Relish</option>
<option>Tent</option>
<option>Flashlight</option>
<option>Toilet Paper</option>
</select>Basic
{{#select-picker}}
<option>Mustard</option>
<option>Ketchup</option>
<option>Relish</option>
<option>Tent</option>
<option>Flashlight</option>
<option>Toilet Paper</option>
{{/select-picker}}Dynamic data and value load
// controller
export default Ember.Controller.extend({
data: ['Mustard','Ketchup','Relish','Tent','Flashlight','Toilet Paper'],
itemValue: null
});
// template
{{select-picker
multiple=true
showTick=true
data=data
value=itemValues
}}Installation
git clone https://github.com/shayanypn/ember-cli-selectpickerthis repositorycd ember-cli-selectpickernpm installbower install
Running
ember serve- Visit your app at http://localhost:4200.
Running Tests
npm test(Runsember try:eachto test your addon against multiple Ember versions)ember testember test --server
Building
ember build
For more information on using ember-cli, visit https://ember-cli.com/.
0.0.1
8 years ago