开发者

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:

  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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜