X-Git-Url: http://git.roojs.org/?p=roojs1;a=blobdiff_plain;f=docs%2Fsrc%2FRoo_form_TextItem.js.html;fp=docs%2Fsrc%2FRoo_form_TextItem.js.html;h=fe5e5d5ea4fddca758ce96d7278c4de9b6a4e668;hp=a608f4862eb126c89c8e9decb456b06744d17aeb;hb=9c024aa0d7e78ad1630dca48384ef6586cd374d4;hpb=d25b2a59660233bd4af2b7c68dcdb508dd3b7727 diff --git a/docs/src/Roo_form_TextItem.js.html b/docs/src/Roo_form_TextItem.js.html index a608f4862e..fe5e5d5ea4 100644 --- a/docs/src/Roo_form_TextItem.js.html +++ b/docs/src/Roo_form_TextItem.js.html @@ -1,4 +1,4 @@ -/home/edward/gitlive/roojs1/Roo/form/TextItem.js/* +Roo/form/TextItem.js/* * Based on: * Ext JS Library 1.1.1 * Copyright(c) 2006-2007, Ext JS, LLC. @@ -31,25 +31,34 @@ * @cfg {String} html the content for this item */ html : '', - /** - * @cfg {String} cls the class for this item - */ - cls : '', getAutoCreate : function() { var cfg = { id: this.id, tag: this.tag, - html: this.html + html: this.html, + cls: 'x-form-item' }; - if(this.cls) { - cfg.cls = this.cls; - } - return cfg; + }, + + onRender : function(ct, position) + { + Roo.form.TextItem.superclass.onRender.call(this, ct, position); + + if(!this.el){ + var cfg = this.getAutoCreate(); + if(!cfg.name){ + cfg.name = typeof(this.name) == 'undefined' ? this.id : this.name; + } + if (!cfg.name.length) { + delete cfg.name; + } + this.el = ct.createChild(cfg, position); + } } }); \ No newline at end of file