layer([layer_index])

Class: Tabs. Method inherited from UIComponent.

Description:

Gets or sets the layer index for this component within its Panel or Window container.

Layers create strict stacking groups that override z-index: all components in layer 2
appear above all components in layer 1, regardless of their z-index values. Higher
layer numbers appear in front, lower numbers appear behind.

Note: This only affects components added to Panel or Window containers.

Parameters:

Name Type Description

[layer_index]

number

The layer index to set (optional)

Returns:

The current layer index when called without arguments, or this for method chaining when setting a value

Type: number | this