count

returns the number of currently visible items (counts both parent and child nodes)

number count();
numberthe number of visible (opened) items

Example

tree = webix.ui({
    view:"tree",
    ...
});
 
tree.data.count();//-> 8
//or simply
tree.count();//-> 8

Details

Back to top
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.