childIndex(child, [new_index])
Class: Tabs. Method inherited from ContainerComponent.
Description:
Gets or sets the index of a child component within this container. Setting new index changes z-order of the component.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
Object |
Child component |
|
|
number |
The new index to assign to the child. Moves the component in z-order. |
Returns:
If new_index is provided, returns this component. If the child is not found in this container, returns null. Otherwise, returns the child's current z-index.
Type: this | null | number
