PDA

View Full Version : hidden component



christophe67
27 Oct 2011, 9:45 AM
Hello,

How to you hidden for example a panel when you write like this below:




var url = Ext.get('user_priv').getValue();var visible ='';if (url = 'test'){ visible='true'; }else{ visible='false';
var testpanel= new Ext.Panel({
hidden:visible,
.......
});


Thanks for your help
Christophe

christophe67
27 Oct 2011, 9:50 PM
No body have an idea,how to do that

Uberdude
28 Oct 2011, 12:42 AM
You should set the variable visible to the boolean value true or false, not the string value 'true' or 'false'.