I have a label:
url= new Ext.form.Label() url.setText("test");
but url is esca开发者_开发技巧ped.
You cannot create an URL from the text of the label :
{
xtype:'label',
text:'<a href="www.google.com">Google</a>'
}
This kind of code won't generate a hyperlink. Instead use a displayfield:
{
xtype:'displayfield',
value:'<a href="www.google.com">Google</a>'
}
精彩评论