index([index])

Class: Button. Method inherited from UIComponent.

Description:

Sets of gets an index (z-order) of this component if it is added to a container, otherwise returns null.
Larger value brings component forward, smaller to the back, like z-index in CSS.

Parameters:

Name Type Description

[index]

number

Returns:

If value is provided, then this component is returned, if component has no parent then null is returned, otherwise index is returned.

Type: this | null | number