I have a GXT 3 TabPanel
and would like to disable one or more tabs in response to an event.
There does not seem to be a way to do this.
How to disable a tab in a GXT 3 tabpanel
956 Views Asked by Joel At
3
There are 3 best solutions below
0

I had the same issue happening in my project.
The way I solved it is really simple and I hope that it answers your need.
public void enableTab(IsWidget item, Boolean enable) {
TabItemConfig config = tabPanel.getConfig(item.asWidget());
config.setEnabled(enable);
tabPanel.update(item.asWidget(), config);
}
I call that method every time I need to change a tab state.
I figured this out a while back and forgot to post the answer. Here's a way to do this that works reliably :
}