getVisibleCount of ui.menu, Methods Webix Docs
counts the items that can be seen with the current view height
number getVisibleCount();
| number | the number of visible items |
Example
var count = $$("mylist").getVisibleCount();
Details
The method will not work for list with variable item height.
webix.ui({
view:"mylist",
type:{ height:"auto" }
});
var count = $$("mylist").getVisibleCount(); //NaN
See also
Articles
If you have not checked yet, be sure to visit site of our main product Webix js frameworks and page of javascript menu library product.