Documentation

limit

the total number of pages in the pager

number limit;

Example

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

See also

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,
        ...
})
Back to top