网格 - 动作列的行为类似于弹出菜单

时间:2021-06-23 19:40:36

I'm using ExtJS for my project and can see that there is a way to embed "actioncolumns" inside of Grid columns. However, my "action" isn't just a single click, it actually needs to show a flyout menu (similar to the Menu control). Is there a direct way to do this in Ext? Or do I have to implement all this functionality myself?

我正在为我的项目使用ExtJS,并且可以看到有一种方法可以在Grid列中嵌入“actioncolumns”。但是,我的“动作”不仅仅是单击,它实际上需要显示弹出菜单(类似于菜单控件)。在Ext中有直接的方法吗?或者我自己必须实现所有这些功能?

1 个解决方案

#1


1  

There is no direct way. You need to create a menu and show it manually in the event handler for action button. You can also show menu as a context menu for the grid (right click).

没有直接的方法。您需要创建一个菜单并在事件处理程序中手动显示该操作按钮。您还可以将菜单显示为网格的上下文菜单(右键单击)。

#1


1  

There is no direct way. You need to create a menu and show it manually in the event handler for action button. You can also show menu as a context menu for the grid (right click).

没有直接的方法。您需要创建一个菜单并在事件处理程序中手动显示该操作按钮。您还可以将菜单显示为网格的上下文菜单(右键单击)。