如何在ExtJS 4中创建超级链接? [英] How to create hyper link in ExtJS 4?
本文介绍了如何在ExtJS 4中创建超级链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在ExtJS 4中工作。我被困在必须在ExtJS 4中创建超链接的地步。我一直在寻找很多在ExtJS 4中创建超链接的方法,但是我没有得到任何解决方案实际上,我必须创建一个超链接,然后单击该链接后,我将在ExtJS 4中显示另一个页面。实际上,我也没有在ExtJS 4中得到该事件。如何在ExtJS 4中使用超链接。
我正在使用这种方式...
I am working in ExtJS 4.I have been getting stuck at a point where I have to create a hyperlink in ExtJS 4.I have been searching a lot for creating hyperlink in ExtJS 4 but I did not get any solution for it.Actually I have to create a hyperlink and after clicking on that link I am going to display another page in ExtJS 4. Actually also i did not get the event in ExtJS 4. How can I use hyperlink in ExtJS 4. I am using this way...
{
xtype: 'panel',
html:'<a href="second.js">Second page</a>',
}
请给我一些建议.....
Please give me some suggestions.....
推荐答案
我会使用 autoEl
。
{
xtype: 'component',
autoEl: {
tag: 'a',
href: 'http://www.example.com/',
html: 'Example.com'
}
}
这是一个小提琴
这篇关于如何在ExtJS 4中创建超级链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文