I can do
if( !Ext.getCmp('myElem'))
to check if an element exists and
Ext.getCmp('myElem').hide();
or
Ext.getCmp('myElem').show();
to hide or show the item.
But how to check if an element is hidden?
if (Ext.getCmp('myElem') && <*hidden*>){//??? //do something }
Browsing SO did not help me find the answer.
Thanks.
source share