PDA

View Full Version : find collapse



h3ll0w
16 Oct 2009, 10:45 PM
Hellow, I have code thats makes collapse.
But I don't know how to get something like this:

if (element.id.collapse == true)
{
do something;
} else {
do nothing;
}

I don't know how can I check collapse on this item.
Please help me out.

tubamanu
17 Oct 2009, 10:08 AM
can be something like this:



if (Ext.getCmp('yourId').collapsed == true) {

}
else {

}

h3ll0w
18 Oct 2009, 9:43 AM
can be something like this:



if (Ext.getCmp('yourId').collapsed == true) {

}
else {

}


I try this but it doesn't work that way.

tubamanu
18 Oct 2009, 10:18 AM
without any sourcecode of your application, a solution is hard to find.

h3ll0w
18 Oct 2009, 10:26 PM
Uh, sorry it's works :)
Thank you :)