We are porting our internal Ember Semantic-UI components to an official Semantic-UI integration. The code was original built for CrowdOx and later SpruceMail. We should have a beta of Semantic-UI-Ember available by end of 2014.
We feel that the Semantic-UI-Ember project should be an extension of Semantic-UI and not a complete rewrite. With that in mind, we will only be creating components to extend Semantic-UI modules, all other uses of Semantic-UI in your project should follow the official documentation.
Include the library as an NPM dependency, from within an ember-cli app.
npm install --save-dev Semantic-Org/Semantic-UI-Ember
Run the library's blueprint to pull in its Bower dependencies. This only needs to be done once.
ember generate semantic-ui-ember
- Documentation: Official Documentation
- Class:
ui accordion
- Component:
ui-accordion
Replace <div class="ui accordion">
with {{#ui-accordion}}
and fill the inside content with standard Semantic-UI.
Variations can be used with {{#ui-accordion class="styled"}}
.
- Documentation: Official Documentation
- Class:
ui checkbox
- Component:
ui-checkbox
Replace <div class="ui checkbox">
with {{ui-checkbox}}
and bind to a property on your model/controller/component.
export default Ember.Controller.extend({
havingFun: false
});
- Class:
ui radio
- Component:
ui-radio
Replace <div class="ui radio">
with {{ui-radio}}
and bind to a property on your model/controller/component.
export default Ember.Controller.extend({
fruit: null
});
- Documentation: Official Documentation
There isn't a corresponding Ember component for this since it isn't rendered to the screen but instead invoked.
- Documentation: Official Documentation
- Ember.Select: [Follows Ember.Select Style](http://emberjs.com/api/classes/Ember.Select.html#sts=Ember.Select Class packages/ember-handlebars/lib/controls/select.js:93)
- Class:
ui dropdown
- Component:
ui-dropdown
- Parameters
- content: List of data that you want displayed. Required
- value: Bound value that is set to
optionValuePath
- prompt: Text to display before an option has been chosen
- icon: Icon you want to use. Default is
dropdown
- optionLabelPath: Path to the label that is displayed for each item. Default is
content
- optionValuePath: Path to the value that is used when an item is selected. Default is
content
Replace <div class="ui dropdown">
with {{ui-dropdown}}
and bind to a list and set a bound property.
export default Ember.Controller.extend({
itemActions: [ "Edit", "Remove", "Hide"],
selectedAction: null
});
- Documentation: Official Documentation
- Class:
ui modal
COMING SOON
- Documentation: Official Documentation
COMING SOON
- Documentation: Official Documentation
- Class:
ui rating
COMING SOON
- Documentation: Official Documentation
- Class:
ui shape
NOT IMPLEMENTED
- Documentation: Official Documentation
- Class:
ui sidebar
NOT IMPLEMENTED
- Documentation: Official Documentation
- Class:
ui sidebar
There isn't a cooresponding Ember component for this since it isn't rendered to the screen but instead invoked.