cipchk / ng-tree-antd

A antd style of based on angular-tree-component.
https://cipchk.github.io/ng-tree-antd/
MIT License
67 stars 11 forks source link

How to get all selected nodes #23

Open wgqjiayou opened 6 years ago

wgqjiayou commented 6 years ago

How to get all selected nodes, such as the id of all selected nodes

xbu commented 6 years ago

you can try to use activeNodes property(https://angular2-tree.readme.io/docs/treemodel) or iterate the nodes to get the selected nodes

boatlet commented 6 years ago

getActiveNodes can not work. active is not checked, so i think only thought collect ever check event to keep a checked nodes

Y2zz commented 6 years ago

Is there any other way besides traversing the result?