self:set_position

Client

Sets the position of the webview


Syntax

local status = self:set_position(
    position
)

Parameters

TypeNameDescription
vector2positionPosition to move the webview to, as {x, y}

Returns

TypeNameDescription
boolstatustrue on successful execution, or false on failure

Examples

Set the position of a webview
local wv = webview.create()

-- Move webview to top-left corner
wv:set_position({0, 0})

-- Move webview to a custom position
wv:set_position({100, 200})

On this page