TabSheet - Prevent transition between tabs?

Hello, Jmix Team,

Could you please give an idea how to prevent transition between tabs at the TabSheet component?

BR,
Denislav Kanchev

I’m not Jmix Team, but I have something for you meanwhile to read.

For Vaadin 8

Later versions like 22 have equivalent AddChangeListener

So, you will have to implement such a listener on your tab, and when a tab is selected, you will have to check some condition if a tab can be switched, presumably required fields, and then allow the switch.

Something like described “Handling Tab Close Events” example that is given in the documentation.

Kind regards,
Mladen