开发者

how to make href from Ext.form.Label?

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>'
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜