common.destroy

Destroys the object.
destroy()
Returns undefined.

Description

The destroy() method will remove the object from the screen (if it is rendered), remove it from w2ui object array and destroy all related objects. For example, if it is a grid, it will destroy grid's toolbar. This method emits .onDestroy event.
You can also use w2destroy() method defined in utilities.

User Comments

comments powered by Disqus