skar karthikeyan wrote:
> 
> Try this in the playground. Only the current tab is enabled and all 
> other tabs are disabled. Use this in the event listener for any event 
> which indicates change in a user input in the current tab.
> 
>> var approot = this.getRoot();
>> var tv = new qx.ui.tabview.TabView();
>> var tbs = [];
>> for(i=0;i<5;i++){
>>   var tb = new qx.ui.tabview.Page("page"+(i+1)).set({enabled: false}); 
>>   tv.add(tb);
>> }
>> tv.getSelection()[0].setEnabled(true);
>> approot.add(tv);
>>
> cheers,
> skar.
> 

Hi Skar,

thanks for the code sample. I am happy, it is so simple, I expected some
event magic. But still, I would prefer to control the pages in tabview
before they get selected. I was hoping for TabButton, but I am totally
missing the way how to access the TabButton or register some listener.

If I use Skar's example, could anyone help me to understand where or how can
I access the TabButton for each page?

Thanks,
Luke
-- 
View this message in context: 
http://old.nabble.com/How-to-prevent-changing-Page-in-tabview-tp27017987p27060894.html
Sent from the qooxdoo-devel mailing list archive at Nabble.com.


------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev 
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to