ember-mb-menu

v0.1.3
Simple single/multiple select menu
ember-addon menu

MB-Menu

Simple menu - demo.

Installing

ember install ember-mb-menu

Basic Usage

{{#mb-menu items=items selected=selected on-select="selected" as |item|}}
  {{item}}
{{/mb-menu}}

selected can either be a single item or an array for multiple-selection.

Actions

  • on-select - sent when item is selected
  • on-deselect - sent when item is de-selected
  • on-toggle - sent when item is selected or deselected

Styling

  • class - the class of the menu (standard Ember)
  • item-class - the class for each item
  • selected-class - the class to give to selected items

Event Bubbling

If you want to prevent click events from bubbling, pass bubbles=false and they will be swallowed.

Developing

Installation

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

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

npm i ember-mb-menu

Metadata

  • MIT
  • >= 0.10.0
  • Richard Livsey
  • released 7/13/2015

Downloads

Maintainers