-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I am creating dynamic tabs.I have created 1st tab then 2nd tab etc.When I am at 3rd tab, I want that user will not be able to select the other tabs or in other words, user will not be able to move from one tab to other tabs.I am using event.propogation(); to stop the event but it is not working.
Do anyone have other solution?
Hi I want that user will not be able to select the other tabs & then after lots of search I got the solution given below:
selectedTab.addEventListener( // add an EventListener
Events.ON_CLICK, // listen to onClick event
new EventListener() {
public void onEvent(Event event) {
tabs.setSelectedTab((Tab) tabs.getTabs().getChildren()
.get(tabs.getTabs().getChildren().size() - 1));
}
});
selectedTab.setWidgetOverride("_sel",
"function(notify, init) {return;}"); // prevent select at client
Asked: 2013-01-17 05:07:53 +0800
Seen: 63 times
Last updated: Jan 22 '13