ember-ted-select v2.2.2
Ember-ted-select
A data down, actions up select component rendered with real DOM elements.Supports disabled options, multi-select, option sorting and custom prompt.
This addon is prepared for internal use at TED. We're happy to share our code as open-source, but be aware that it may not be maintianed for broader community use.
Installation
ember install ember-ted-select
Examples
Standard Usage
You'll need to give ted-select an array of options (content), specifying a property to use for both option value and option label. A selection can be passed in (data down) using the selected property, and the add-on will send an onchange action out (actions-up)
{{ted-select
selectClassNames="form-control"
content=TEDevents
optionValueKey="id"
optionLabelKey="title"
onchange=(action "update")
selected=initialSelection
}}Demo and additional examples
Visit the docs site for demos and more detailed usage examples.
##Configurable options
Running a demo
git clone <repository-url>this repositorynpm installbower installember serve- Visit your app at http://localhost:4200.
Running Tests
npm test(Runs ember try:each to test your addon against multiple Ember versions)
or to run a test server while developing:
ember test --server
Building
ember build
For contributors:
PRs that do not include the following will not be merged:
- a passing test suite
- test coverage for your new code
- updated README docs (if applicable)
- updated docs and/or examples in the docs site found in
tests/dummy(if applicable)
For maintainers:
Updating the GitHub pages docs site
ember github-pages:commit --message "update gh-pages"git push origin gh-pages
Creating a new release and publishing to npm
npm version $TYPE -m "message about this version"where $TYPE indicates the semver release type, eg.patch,majororminor. see the npm-version docs and (semver docs)http://semver.org/ if you're not sure which appliesnpm publishgit push --tags- document the changes by creating a new release
For more information on using ember-cli, visit https://www.ember-cli.com/.