returns the number of currently visible items
number | the count of items |
var dtable = webix.ui({
view:"datatable",
...
});
var items = dtable.count();
The method can be used set the component behavior in case no data is loaded into it:
webix.ui({
view:"list",
ready:function(){
if (!this.count()){ //if there are no data items
webix.extend(this, webix.OverlayBox);
this.showOverlay("<div style='margin:75px; font-size:20px;'>There's no data</div>");
}
}
});
Back to top