count

the total number of records that the pager will process

number count;

Example

var myPager = webix.ui ({
        view:"pager",
        container:"paging_here",
        count:5000
});

Details

The parameter has sense only when ui.pager is used stand-alone.

The count and limit parameters are interchangeable and used in pair with the size parameter to limit the number of records to process.

  • In case of count, the total number of pages is calculated automatically (if there is a data component) or can be set.
  • In case of limit, the total number of records is counted as count divided by size (count/size) or, if one of these settings is not specified - equal 1.

Integration with Webix components

If ui.pager is integrated with some Webix component, the total number of records to process will be generated automatically and the parameter (if it's set) will be ignored.

//if you set the 'count' parameter for this pager it will be ignored
var myPager = webix.ui ({
        view:"pager",
        container:"paging_here",
        size:100
});
 
dtable = webix.ui({
        view:"datatable",
        pager:myPager,
        ...
})
See also
Back to top