removeChild(child_or_index, [recursive])

Class: UIComponent.

Description:

Removes component's child by child object or child index.

Parameters:

Name Type Default Description

child_or_index

object | number

Child component object or index of the child.

[recursive]

boolean

false

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