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
- Remov开发者_开发百科e it from the memory, in ExtJs 4?
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.
精彩评论