self:set_z_index

Client

Sets the stacking order of the webview


Syntax

local status = self:set_z_index(
    value
)

Parameters

TypeNameDescription
intvalueStacking order to set
Silently clamped to 010000 (values above are reserved for engine UI like the console)

Returns

TypeNameDescription
boolstatustrue on successful execution, false otherwise

Examples

Set the z-index of a webview
local entity = core.webview.create()

-- Move webview above other webviews
entity:set_z_index(100)

On this page