count

returns the number of currently visible items

number count();
numberthe count of items

Example

var dtable = webix.ui({
   view:"datatable",
   // datatable config
});
 
var items = dtable.count();

Related samples

Details

The method can be used to set the component behavior in case no data are 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>");
  }
 }
});
See also
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.
If you have not checked yet, be sure to visit site of our main product Webix mvc library and page of javascript kanban product.