I am unable to find any way to disable checkbox node using angular tree component. There is no option to mark the tree disabled so that the checkboxes that appear alongwith th etree data should be disabled. Please suggest
disable checkbox in angular tree component
1.6k views Asked by Ravneet Sodhi At
1
Disabling the node can be done by
actionMappinginside options attribute https://angular2-tree.readme.io/v1.2.0/docs/options. Here click event of mouse can be overwritten.In my tree data I kept an attribute
isSelectableon each node, which istrue|false. In case of true i proceed selecting the node otherwise it does not do anything. Here are full options that I am passing to thetreecomponent.