Vital.sandbox
Webview

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 browser = webview.create()

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

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

On this page