partial.js logo
Latest version
v1.3.1 (RC2)

Builders.PageBuilder


Page builder is helpful for datasource paging.


var builders = require('partial.js/builders');
var builder = new builders.PageBuilder();

Methods


builder.refresh(items, page, max)builder.render(fn, max)new PageBuilder(items, page, max)
builder.refresh(items, page, max);
return PageBuilder;

Refresh PageBuilder informations about paging.

builder.render(fn, max);
return Object Array;

Prepare pagination to array datasource.

new PageBuilder(items, page, max);
return PageBuilder;

Create an instance.