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