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.
Use isVisible()
:
Returns true if this component is visible.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With