self:set_position
Client
Sets the position of the webview
Syntax
local status = self:set_position(
position
)Parameters
| Type | Name | Description |
|---|---|---|
vector2 | position | Position to move the webview to, as {x, y} |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, or false on failure |
Examples
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})