Socket
Book a DemoInstallSign in
Socket

ae-select

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ae-select

The default blueprint for ember-cli addons.

1.1.1
latest
Source
npmnpm
Version published
Weekly downloads
5
150%
Maintainers
1
Weekly downloads
 
Created
Source

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

  • ember server
  • Visit your app at http://localhost:4200.

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

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

Keywords

ember-addon

FAQs

Package last updated on 10 Nov 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.