Reputation: 9340
I can do
if( !Ext.getCmp('myElem'))
to check whether the element exist and
Ext.getCmp('myElem').hide();
or
Ext.getCmp('myElem').show();
to hide or show the element.
But, how to check if the element is hidden?
if (Ext.getCmp('myElem') && <*hidden*>){//???
//do something
}
Browsing SO didn't help me to find an answer.
Thank you.
Upvotes: 6
Views: 10104