Skip to content Skip to sidebar Skip to footer

Extjs 4, What Is The Right Way To Delete Control From Container And Remove It From The Memory?

The question is simple but i can't find a good and clear answer for it. What is the right way to: Delete control from container Remove it from the memory, in ExtJs 4?

Solution 1:

Ext.AbstractContainer.remove method can't be far off.

remove( Component/String component, [Boolean autoDestroy]) : Void

Removes a component from this container. Fires the beforeremove event before removing, then fires the remove event after the component has been removed. Parameters

  • component : Component/String The component reference or id to remove.

  • autoDestroy : Boolean (optional) True to automatically invoke the removed Component's Ext.Component.destroy function. Defaults to the value of this Container's autoDestroy config.

Post a Comment for "Extjs 4, What Is The Right Way To Delete Control From Container And Remove It From The Memory?"