Skip to content

hxlniada/angular-dual-multi-select

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

angular-dual-multi-select

install

bower install angular-dual-multi-select --save

features

  • infinite levels
  • check all/uncheck all

dependencies

usage

  • app
angular.module('yourModule', ['DualMultiSelect']);
  • in html
<dualmultiselect
    options="options"
    input-model=“inputModel”
    recursion-check="Boolean"
    output-all-info="Boolean"
    output-duplicate="Boolean"
    ng-model="value"></dualmultiselect>

propertys

  • ng-model required

just normal ng-model

  • recursion-check optional [false]

whether check all/uncheck all

  • input-model required

source array

  • output-all-info optional [false]

whether output the valueProperty or output the full object

  • output-duplicate optional [false]

if all of the child node is checked, whether just output the parent node

  • options

listed below

options

  • valueProperty optional [id]

the value property of your data

  • displayProperty optional [text]

the property to display

  • labelAll: optional [已选择的内容]
  • labelSelected: optional [待选择内容]
  • buttonCheckAll: optional [全选]
  • buttonDeselectAll: optional [全不选]
  • childrenProperty: optional [children]