count
returns the number of currently visible items
function count(): number
Returns
Section titled “Returns”number
the count of items
Example
Section titled “Example”var dgrid = webix.grid({ // datagrid config});
var items = dgrid.count();
also check the next samples:
Details
Section titled “Details”The method can be used to set the component behavior in case no data are loaded into it:
webix.grid({ ready:function(){ if(!this.count()){ // if there are no data items this.showOverlay("<div style='margin:75px; font-size:20px;'>There's no data</div>"); } }});