Search code examples
extjsextjs3

How to remove items from window in ext js?


I want remove all the items from the Ext window component. Means i have to clear the window in a button event. Any help is must appreciated....Thankz

just


Solution

  • try

    removeAll() method of window, which Removes all components from this container.

    window.removeAll() or Ext.getCmp('windowId').removeAll();

    refer : Ext.Window-method-removeAll