Ae-select
Select component used by Audience Engine ember apps
Usage
{{ae-select
content=unitedStates
selection=selectedState
prompt="Select a state"
action=(action (mut selectedState))
optionValuePath="id"
optionLabelPath="text"
required=true
name=name
}}
export default Ember.Controller.extend({
selectedState: null,
unitedStates: [{
id: 1,
text: "Alaska"
},
{
id: 2,
text: "Arizona"
},
{
id: 3,
text: "Arkansas"
},
{
id: 4,
text: "California"
},
{
id: 5,
text: "Colorado"
},
{
id: 6,
text: "Connecticut"
},
...
]
})
This addon also supports working with arrays of strings as options.
{{ae-select
content=unitedStates
selection=selectedState
prompt="Select a state"
action=(action (mut selectedState))
optionValuePath="id"
optionLabelPath="text"
required=true
name=name
}}
export default Ember.Controller.extend({
selectedState: null,
unitedStates: [
"Alaska",
"Arizona",
"Arkansas",
"California",
"Colorado",
"Connecticut",
...
]
})
Installation
git clone
this repositorynpm install
bower install
Running
Running Tests
ember test
ember test --server
Building
For more information on using ember-cli, visit http://www.ember-cli.com/.