Simple Ember component for allowing multiple selection using checkboxes from a certain collection (a hasMany property for example).
Demo available here.
npm install ember-multiselect-checkboxes --save-dev
Example:
This component can be used with an array of primitives as the options, an array of plain javascript objects as the options, or an array of Ember objects as the options. The following properties are available and should always be set:
options
: a collection of Ember objects that can be selected.selection
: the subset of the options that is currently selected. The selection will automatically be updated when the user checks or unchecks options through Ember's two-way bindings.
When using this component with an array of javascript objects or an array of Ember objects you should also set the
labelProperty
attribute:
labelProperty
: the property on the plain javascript object or the Ember object that will be used as a label for the checkbox.