Roo/bootstrap/Pagination.js
[roojs1] / Roo / bootstrap / Pagination.js
1 /*
2  * - LGPL
3  *
4  * column
5  * 
6  */
7
8 /**
9  * @class Roo.bootstrap.Column
10  * @extends Roo.bootstrap.Component
11  * Bootstrap Column class
12  * @cfg {number} colspan  Number of columsn to span
13  * 
14  * @constructor
15  * Create a new Column
16  * @param {Object} config The config object
17  */
18
19 Roo.bootstrap.Pagination = function(config){
20     Roo.bootstrap.Pagination.superclass.constructor.call(this, config);
21 };
22
23 Roo.extend(Roo.bootstrap.Pagination, Roo.bootstrap.Component,  {
24     
25     html: false,
26     cls: false,
27     size: false,
28     inverse: false,
29     from: 1,
30     to: 4,
31     align: false,
32     active: 1,
33     
34     getAutoCreate : function(){
35         cfg = {
36             tag: 'ul',
37             cls: 'pagination',
38             cn: []
39         }
40         if (this.html) {
41             cfg.html=this.html
42         }
43         if (this.cls) {
44             cfg.cls=this.cls
45         }
46         cfg.cn[0]={
47             tag: 'li',
48             cn: [
49                 {
50                     tag: 'a',
51                     href:'#',
52                     html: '«'
53                 }
54             ]
55         }
56         cfg.cn.push(
57             {
58                 tag: 'li',
59                 cn: [
60                     {
61                        tag: 'a',
62                        href: '#',
63                        html: '»'
64                     }
65                 ]
66             }
67         )
68         
69         return cfg;
70     }
71    
72 });
73
74  
75
76