major doc changes
[roojs1] / Roo / bootstrap / Pagination.js
1 /*
2  * - LGPL
3  *
4  * pagination
5  * 
6  */
7
8 /**
9  * @class Roo.bootstrap.Pagination
10  * @extends Roo.bootstrap.Component
11  * @children Roo.bootstrap.Pagination
12  * Bootstrap Pagination class
13  * 
14  * @cfg {String} size (xs|sm|md|lg|xl)
15  * @cfg {Boolean} inverse 
16  * 
17  * @constructor
18  * Create a new Pagination
19  * @param {Object} config The config object
20  */
21
22 Roo.bootstrap.Pagination = function(config){
23     Roo.bootstrap.Pagination.superclass.constructor.call(this, config);
24 };
25
26 Roo.extend(Roo.bootstrap.Pagination, Roo.bootstrap.Component,  {
27     
28     cls: false,
29     size: false,
30     inverse: false,
31     
32     getAutoCreate : function(){
33         var cfg = {
34             tag: 'ul',
35                 cls: 'pagination'
36         };
37         if (this.inverse) {
38             cfg.cls += ' inverse';
39         }
40         if (this.html) {
41             cfg.html=this.html;
42         }
43         if (this.cls) {
44             cfg.cls += " " + this.cls;
45         }
46         return cfg;
47     }
48    
49 });
50
51  
52
53