Ext Js:使按钮成为一个链接 [英] Ext Js: make button a link
本文介绍了Ext Js:使按钮成为一个链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Ext Js中,我希望我的某些按钮像链接一样工作(即< a href ...
)。
我如何做到这一点。
现在我正在添加一个处理程序, window.location.href = http:但是我认为应该有一个更简单的方法 - 像在菜单项中添加一个href属性。
/ p>
有些想法?
解决方案
还有一个现有的用户扩展名,这完全是这样。
In Ext Js I want some of my buttons to work like links (i.e. <a href...
).
How can I do that.
Right now I am adding a handler that does window.location.href=http://....
.
But I thought there should be an easier way - something like adding an href attribute like in menu item.
Some ideas?
解决方案
There's also an existing user extension that does exactly this.
这篇关于Ext Js:使按钮成为一个链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文