Roo/bootstrap/Column.js
[roojs1] / Roo / bootstrap / Column.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.Column = function(config){
20     Roo.bootstrap.Column.superclass.constructor.call(this, config);
21 };
22
23 Roo.extend(Roo.bootstrap.Column, Roo.bootstrap.Component,  {
24       
25     colspan : 6,
26     
27         autoCreate : {
28         cls: 'column'
29     },
30     
31     getAutoCreate : function(){
32         var cfg = Roo.apply({}, Roo.bootstrap.Column.superclass.getAutoCreate.call(this));
33         cfg.cls += 'col-md-' + this.colspan;
34         return cfg;
35     }
36    
37 });
38
39  
40
41