limit

the total number of pages in the pager

number limit;

Example

webix.ui ({
    view:"pager",
    limit:30
});

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.
In case of limit, the total number of records is calculated automatically.

Integration with Webix components

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

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