9 * @class Roo.bootstrap.Pagination
10 * @extends Roo.bootstrap.Component
11 * Bootstrap Pagination class
12 * @cfg {String} size xs | sm | md | lg
13 * @cfg {Boolean} inverse false | true
14 * @cfg {Number} from pagination starting number
15 * @cfg {Number} to pagination ending number
16 * @cfg {String} align empty or left | right
17 * @cfg {Number} active active page number
20 * Create a new Pagination
21 * @param {Object} config The config object
24 Roo.bootstrap.Pagination = function(config){
25 Roo.bootstrap.Pagination.superclass.constructor.call(this, config);
28 Roo.extend(Roo.bootstrap.Pagination, Roo.bootstrap.Component, {
38 getAutoCreate : function(){
45 cfg.cls += ' inverse';
64 var from=this.from>0?this.from:1;
65 var to=this.to-from<=10?this.to:from+10;
66 var active=this.active>=from&&this.active<=to?this.active:null;
67 for (var i=from;i<=to;i++) {
71 cls: active===i?'active':'',