Webview
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 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})