Hi!
Do exists an event when the user clicks in the icon of the button? In my case I need to receive the click event of the icon in a tab of a TabPanel class.
Hi,
There is no specific event to listen for the icon click in the button, But you can easily achieve it with a button click listener
Please check the codepen below, when you click on the button's icon It'll log a text in the console else not
https://codepen.io/dv-auntik/pen/mdoZrGx?editors=0011
Docs https://bryntum.com/products/gantt/docs/api/Core/widget/Button
Best regards,
Tasnim
Thank you very much for your suggestion, I've opened an FR ticket for that here https://github.com/bryntum/support/issues/8675
Best of luck
Hey henrique,
I created a feature request ticket to add that event, please follow the updates/discussion there https://github.com/bryntum/support/issues/8679
Best regards,
Márcio
Sure!
I'm creating a system with tabs, when the user clicks in the menu, I open the tab with the form to the user fill the info, but the user can open more than one form, so I need an icon to the user close this tab. So, I put a X in the icon of the tab and now I need to know that the user clicked in this icon to close the tab. The solution showed here works, but it can be release to everybody use. Because of this I'm suggesting creating a new evento, only for the icon, because clicking in the tab, it active the tab.
PS: Of course, I'm using the TabPanel for this!