addTo(parent, [data_or_index])
Class: List. Method inherited from UIComponent.
Description:
Adds this component to a parent control. Optional index can be supplied to specify at what Z order to insert this component.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
Object |
Container component to which you want to add this component to. |
|
|
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 for chaining.
Type: this
