You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
824 B
32 lines
824 B
4 years ago
|
define(function(require, exports, module) {
|
||
|
var Pagination = require('../views/widgets/pagination/pagination');
|
||
|
|
||
|
function PaginationAdapter(args) {
|
||
|
this.pageSize = args.pageSize;
|
||
|
this.totalRows = args.totalRows;
|
||
|
this.container = args.container;
|
||
|
this.args = args;
|
||
|
this.actions = args.actions;
|
||
|
this.init();
|
||
|
}
|
||
|
|
||
|
PaginationAdapter.prototype.init = function() {
|
||
|
this.pagination = new Pagination({
|
||
|
pageSize: this.pageSize,
|
||
|
totalRows:this.totalRows,
|
||
|
container: this.container,
|
||
|
actions: this.actions
|
||
|
});
|
||
|
};
|
||
|
|
||
|
PaginationAdapter.prototype.setRefreshPages = function(pageIndex, pageSize, totalRows){
|
||
|
this.pagination.setRefreshPages(pageIndex, pageSize, totalRows);
|
||
|
}
|
||
|
|
||
|
PaginationAdapter.prototype.getPageInfo = function() {
|
||
|
return this.pagination.getPageInfo();
|
||
|
};
|
||
|
|
||
|
return PaginationAdapter;
|
||
|
|
||
|
});
|