开发者

ExtJs 4, what is the right way to Delete control from container and Remove it from the memory?

开发者 https://www.devze.com 2023-02-27 05:08 出处:网络
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

The question is simple but i can't find a good and clear answer for it.

What is the right way to:

  1. Delete control from container
  2. 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.

0

精彩评论

暂无评论...
验证码 换一张
取 消