remove([recursive])

Class: Panel. Method inherited from UIComponent.

Description:

Removes this component from its parent.

Parameters:

Name Type Description

[recursive]

boolean

Boolean indicates if all descendents of this child should also be removed.

Returns:

Returns this component for method chaining

Type: this

Examples:

child.remove(); // Removes child from it's parent container
child.remove(true); // Removes child component from it's parent and all its descendants recursively