I'am working in GXT3 project and i need to add a SelectEvent to TabItemConfig in TabPanel. For example, we can't go to another tabItem if the form in current tabItem doesnt't validate.
Why can't you use
TabPanel panel;
panel.addBeforeSelectionHandler(new BeforeSelectionHandler<Widget>() {
@Override
public void onBeforeSelection(BeforeSelectionEvent<Widget> event) {
//some condition
event.cancel();
}
});
you can get event.getItem() and do validation of current tabItem
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.