X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=Roo%2Fform%2FRow.js;fp=Roo%2Fform%2FRow.js;h=2b3247b5dfa9a7fcf0f3a3c3de54413c0fa00798;hp=0000000000000000000000000000000000000000;hb=47c96bffe20aebba2f6d3d95a6428931e0b3a2da;hpb=fc82bff3902f6b9018e9efb96c6ea168fb4f5d7a diff --git a/Roo/form/Row.js b/Roo/form/Row.js new file mode 100644 index 0000000000..2b3247b5df --- /dev/null +++ b/Roo/form/Row.js @@ -0,0 +1,77 @@ + +/** + * @class Roo.form.Row + * @extends Roo.form.Layout + * @children Roo.form.Column Roo.form.Row Roo.form.Field Roo.Button Roo.form.TextItem Roo.form.FieldSet + * Creates a row container for layout and rendering of fields in an {@link Roo.form.Form}. + * @constructor + * @param {Object} config Configuration options + */ + + +Roo.form.Row = function(config){ + Roo.form.Row.superclass.constructor.call(this, config); +}; + +Roo.extend(Roo.form.Row, Roo.form.Layout, { + /** + * @cfg {Number/String} width + * The fixed width of the column in pixels or CSS value (defaults to "auto") + */ + /** + * @cfg {Number/String} height + * The fixed height of the column in pixels or CSS value (defaults to "auto") + */ + defaultAutoCreate : {tag: 'div', cls: 'x-form-ct x-form-row'}, + + padWidth : 20, + // private + onRender : function(ct, position){ + //console.log('row render'); + if(!this.rowTpl){ + var t = new Roo.Template( + '