addChild(component, [data_or_index])

Class: ToolBar. Method inherited from UIComponent.

Description:

Adds a child component to this container component.

Parameters:

Name Type Description

component

Object

UI Component that can be a child of this component.

[data_or_index]

any

Argument to pass some extra data (such as Tab Name to add Panel to Tabs), or index at which to insert the child. By default component is added to the end.

Returns:

Returns an instance of this component.

Type: this