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