Fix #7197 - fix form layout files and doc labelalign
[roojs1] / Roo / form / Column.js
1
2 /**
3  * @class Roo.form.Column
4  * @extends Roo.form.Layout
5  * @children Roo.form.Row Roo.form.Field Roo.Button Roo.form.TextItem Roo.form.FieldSet
6  * Creates a column container for layout and rendering of fields in an {@link Roo.form.Form}.
7  * @constructor
8  * @param {Object} config Configuration options
9  */
10 Roo.form.Column = function(config){
11     Roo.form.Column.superclass.constructor.call(this, config);
12 };
13
14 Roo.extend(Roo.form.Column, Roo.form.Layout, {
15     /**
16      * @cfg {Number/String} width
17      * The fixed width of the column in pixels or CSS value (defaults to "auto")
18      */
19     /**
20      * @cfg {String/Object} autoCreate
21      * A DomHelper element spec used to autocreate the column (defaults to {tag: 'div', cls: 'x-form-ct x-form-column'})
22      */
23
24     // private
25     defaultAutoCreate : {tag: 'div', cls: 'x-form-ct x-form-column'},
26
27     // private
28     onRender : function(ct, position){
29         Roo.form.Column.superclass.onRender.call(this, ct, position);
30         if(this.width){
31             this.el.setWidth(this.width);
32         }
33     }
34 });