gabrielmiller / angular-multiselect

AngularJS multiselect component based off ngOptions

Home Page:http://namoscato.github.io/angular-multiselect/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AngularJS Multiselect Build Status

AngularJS multiselect component based off ngOptions.

Dependencies

Note that backport supports older versions of these dependencies.

Development

  1. Install dependencies

     npm install
    
  2. Compile JavaScript & CSS

     gulp all
    
  3. Run local webserver

     gulp serve
    

Usage

The interface for this directive is based off ngOptions:

<amo-multiselect
    ng-model="app.model"
    options="option.id as option.label for option in app.options"
    on-change="app.onChange(label)"
    on-toggle-dropdown="app.onToggleDropdown(isOpen)"
    label="app.label"
    search-text="Search..."
    select-text="Select..."
    select-all-text="Select All"
    deselect-all-text="Deselect All"
    selected-suffix-singular-text="thing"
    selected-suffix-text="things">
</amo-multiselect>

where the value of options is of the following form: [select as] label for value in array

Running Tests

Install the Karma commandline interface (karma-cli) globally and run:

karma start

About

AngularJS multiselect component based off ngOptions

http://namoscato.github.io/angular-multiselect/


Languages

Language:JavaScript 87.8%Language:HTML 7.5%Language:CSS 4.6%