-
11 Mar 2008 12:17 AM #21
why ext2.0 GUI Desginer can't support label with
Ext.form.Label
waiting.......
who can help me
-
11 Mar 2008 1:13 AM #22
-
11 Mar 2008 3:06 AM #23
I use GUI Builder 1.3, I have bean add "form,{xtype:'label',text:'Label'}" in *Designer.js
When drag 'label' to in formpanel element,will not show,is error.
JSON CODE:
warning message:Code:{ xtype:"form", title:"Form", layout:"absolute", items:[{ xtype:'label', text:'aa', x:10, y:10 }] }
Load config,typeerrorLast edited by mystix; 13 Apr 2008 at 5:38 PM. Reason: use [code][/code] tags
-
11 Mar 2008 4:21 AM #24
-
11 Mar 2008 4:44 AM #25
-
11 Mar 2008 5:03 AM #26
I checked and you are correct that it is supported in version 2.02 of extjs, but current designer is bundeld with 2.01 and therefor it is not available. I will change the version of extjs in the next release and will add label support. If you need it in the short term just replace the version of extjs.
Sierk
-
11 Mar 2008 7:50 AM #27
-
11 Mar 2008 5:34 PM #28
I have updated to ext2.02 from ext.2.01.
how to set gui designer.form label can be selected, when I click the label,it can't be selected, only select label in tree panel.who help me?
-
13 Mar 2008 6:20 PM #29
AMAZING...
excelent work and thanks.
Best regards from Per
-
13 Mar 2008 11:56 PM #30
We fixed this in version 1.4 which will be released within a view days, but if you cannot wait add the following code.
Sierk
PHP Code:/**
Override the label id so id is selectable in guidesigner
*/
Ext.override(Ext.form.Label, {
onRender : function(ct, position){
if(!this.el){
this.el = document.createElement('label');
this.el.innerHTML = this.text ? Ext.util.Format.htmlEncode(this.text) : (this.html || '');
if(this.forId){
this.el.setAttribute('htmlFor', this.forId);
}
//Swap the ids, so it becomes selectable in designer
this.el.id = this.id;
this.id = this.id + '-';
}
Ext.form.Label.superclass.onRender.call(this, ct, position);
}
});


Reply With Quote