开发者

how to make href from Ext.form.Label?

开发者 https://www.devze.com 2023-03-05 00:20 出处:网络
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 :

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

精彩评论

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