destroy([recursive])

Class: ContainerComponent.

Description:

Removes the control from its parent control and from a list of all components. Also prepares this component to be garbage-collected in JavaScript and GUI to free RAM.

Parameters:

Name Type Default Description

[recursive]

boolean

false

Set to true to also destroy all of its descendants recursively

Returns:

Type: void