Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在使用 extjs 的网格面板中使用按钮而不是文本作为链接
以下代码暗示指向不同页面的链接,我需要将该“填充”链接作为按钮...请帮助我任何人
var text = 'Fill' if(value != undefined && value !='') { text = Ext.Date.format(value,'Y-m-d'); } return '<span class="grid_link">'+text+'</span>';
尝试使用renderTo组件属性
return '<span class="grid_link"><div id="btn"/></span>';
...
Ext.create('Ext.Button', { text: 'Click me', renderTo: 'btn', handler: function() { alert('You clicked the button!') } });