ae-select

1.1.1 • Public • Published

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 repository
  • npm install
  • bower install

Running

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://www.ember-cli.com/.

Readme

Keywords

Package Sidebar

Install

npm i ae-select

Weekly Downloads

0

Version

1.1.1

License

MIT

Last publish

Collaborators

  • bmac