ludalex / ember-multiselect-checkboxes

Ember component providing multiselect functionality using checkboxes.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ember-multiselect-checkboxes

Simple Ember component for allowing multiple selection using checkboxes from a certain collection (a hasMany property for example).

Demo

Demo available here.

Installation

npm install ember-multiselect-checkboxes --save-dev

Usage

Example:

{{multiselect-checkboxes options=users labelProperty='name' selection=selectedUsers}}

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.

About

Ember component providing multiselect functionality using checkboxes.

License:MIT License


Languages

Language:JavaScript 82.2%Language:Handlebars 17.8%