0

私はそれが機能しgetCmp('componentid').hide(); ていないことを使用しています。

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%');
 }

入ってくるが機能しExt.getCmp('inboxQueueId').hide()ていない場合。そして、それはエラーを与えません。私を助けてください。

4

1 に答える 1

2

これを試して、

Ext.getCmp('inboxQueueId').hide('slide', false)

または、このようなもの、

Ext.getCmp('inboxQueueId').hide(false)

これが役立つことを願っています。:)

于 2012-06-12T10:29:42.220 に答える