I have a GXT(3.0.1) TabPanel with many tabs.
This TabPanel has an out-of-the-box CloseContextMenu with 2 options :
- Close this tab
- Close all other tabs
In order to react to "close tab" events and be able to eventually cancel them, I use some BeforeCloseHandler.
What I need :
- When the user closes one tab, be able to display a confirmation dialog for this tab.
- When the user chooses to close all other tabs, display one unique confirmation for all tabs.
The problem :
The BeforeCloseHandler is called as many times as there are some tabs to close. So, I do not find any mean to make the distinction between unique and massive closes. I also do not find any mean to customize this menu.
Does anyone have a solution or am I trying to solve the wrong problem?