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.
你能告诉我如何将 headerclick 或 headerdblclick 事件附加到 Ext.grid.GridPanel 吗?
您可以使用侦听器配置(在配置时)或 .on() 方法(使用网格引用)。
{ xtype: 'grid', listeners: { 'headerclick': { fn: function(grid, col, e){ // whatever }, scope: this } } }
或者
myGrid.on('headerclick', function(grid, col, e){ // whatever });