Webview
self:set_visible
Client
Toggles the visibility of the webview
Syntax
local status = self:set_visible(state)Parameters
| Type | Name | Description |
|---|---|---|
bool | state | Determines the webview's visibility: • When true - the webview is shown• When false - the webview is hidden |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, or false on failure |
Examples
local browser = webview.create()
--Show the webview
browser:set_visible(true)
--Hide the webview
browser:set_visible(false)