An accessible menu component for ember applications.
http://instructure.github.io/ic-menu/
bower install ic-menu
application.hbs
{{#ic-menu}}
{{#ic-menu-trigger}}Actions{{/ic-menu-trigger}}
{{#ic-menu-list}}
{{#ic-menu-item on-select="remove"}}Remove{{/ic-menu-item}}
{{#ic-menu-item on-select="save"
on-disabled-select="notifyDisabled"
enabled=foo}}
Save
{{/ic-menu-item}}
{{/ic-menu-list}}
{{/ic-menu}}
__application_controller.js__
App.ApplicationController = Ember.Controller.extend({
actions: {
remove: function(icMenuItem) {
// do stuff with the icMenuItem instance
},
save: function(icMenuItem) {
// do stuff with the icMenuItem instance
}
}
});
npm install && bower install
grunt
to build and watch files.testem
in a new tab to run tests.