Skip to content

Latest commit

 

History

History
31 lines (26 loc) · 838 Bytes

File metadata and controls

31 lines (26 loc) · 838 Bytes

ngIndeterminateCheckbox

angular indeterminate checkbox directive

Use

<input type="checkbox" 
       ng-model="vm.all.checked"
       indeterminate-checkbox
       node="vm.all"
       nodes="vm.list"
       [selectedNodes="vm.selectedNodes"]
       [treeview="true"]
       [subtree="items"]/>

see the demo here

API

Options

Option Description Data Type Default
node Current node Object null
nodes Child nodes list Array null
selectedNodes The array of selected nodes Array []
treeview Whether it is a treeview Boolean false
subtree Tree's child node's name String "item"

Property

node.checked: bind to ng-model
node.indeterminate: If nodes is not checked all, true