Ember Semantic-UI-DropDown
This is the official Ember library for the Semantic-UI modules.
Installation
Include the library as an NPM dependency, from within an ember-cli app.
ember install ember-semantic-ui-dropdown
If using ember-cli 0.1.5 – 0.2.3
ember install:addon ember-semantic-ui-dropdown
Run the library's blueprint to pull in its Bower dependencies. This only needs to be done once.
ember generate ember-semantic-ui-dropdown
Modules
Dropdown
- Documentation: Official Documentation
-
Class:
ui dropdown
-
Component:
ui-dropdown
-
Parameters
-
selected: Bound value that is set to
optionValuePath
- onChange: Event to bind changes too
-
selected: Bound value that is set to
Replace <div class="ui dropdown">
with {{ui-dropdown}}
and fill in your content
Controller
export default Ember.Controller.extend({
itemActions: [ "Edit", "Remove", "Hide"],
selectedAction: null,
actions: {
updateSelected: function(component, id, value) {
this.set('selectedAction', id);
}
}
});