Webview.devtools readonly
Enable/disable the Webview developper tools, by setting this property to true
or false
respectively.
This property permits or prevents the user to open the Devtools window with the context menu or with the Ctrl+Shift+I
shortcut.
Even if this property is set to
false
, it is still possible to show the Devtools window by calling the
Webview.opendevtools() method.
Example
local ui = require "ui"
require "webview"
-- create a simple window
local win = ui.Window("Webview.devtools property sample", 600, 300)
local Webview = ui.Webview(win, { url = "https://www.google.com" })
Webview.align = "all"
function Webview:onReady()
-- Disable the Devtools
Webview.devtools = false
end
-- shows the window
win:show()
while win.visible do
ui.update()
end