self:set_devtools_visible
Client
Toggles the developer tools panel on the webview
Syntax
local status = self:set_devtools_visible(
state
)Parameters
| Type | Name | Description |
|---|---|---|
bool | state | Determines the devtools visibility: • When true - the devtools panel is opened• When false - the devtools panel is closed |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, or false on failure |
Examples
local wv = webview.create()
-- Open devtools
wv:set_devtools_visible(true)
-- Close devtools
wv:set_devtools_visible(false)