【发布时间】:2021-04-13 15:21:45
【问题描述】:
如何格式化标签以显示 extjs 中的链接? 我不想拥有链接功能(去特定的href)。我只想有一个看起来像一个链接的经典按钮并有点击监听器。
我已尝试使用以下代码:
{
xtype: 'box',
autoEl: {tag: 'a', href: 'http://www.google.com', html: 'Google'}
}
但是,这是经典链接。
我也试过
{
xtype: 'box',
html: '<a href="" class="link-forgot-password"> Forgot Password ?/a>'
}
看起来不错,但缺少的是监听器。
【问题讨论】: