i’m using getCmp('componentid').hide();
its not working.
if (flag_in == 1) {
console.log('inside if of hide');
Ext.getCmp('inboxQueueId').hide();
var el = btn.el;
Ext.getCmp('inbox_hide').setIconCls('show');
flag_in = 0;
Ext.getCmp('queueViewPanel').setWidth('100%');
} else {
console.log('inside else of hide');
Ext.getCmp('inboxQueueId').show();
var element = btn.element;
Ext.getCmp('inbox_hide').setIconCls('hide');
flag_in = 1;
Ext.getCmp('queueViewPanel').setWidth('70%');
}
its coming inside if but Ext.getCmp('inboxQueueId').hide() is not working.
And its not giving error.
Please help me.
Try this,
Ext.getCmp('inboxQueueId').hide('slide', false)Or something like this,
Ext.getCmp('inboxQueueId').hide(false)I hope this helps. 🙂