Webview.contextmenu readonly


Enable/disable the Webview status bar, by setting this property to true or false respectively. When enabled, the user can click anywhere in the Webview widget to show the default context menu.

Example

local ui = require "ui" require "webview" -- create a simple window local win = ui.Window("Webview.contextmenu property sample", 600, 300) local Webview = ui.Webview(win, "https://www.google.com") Webview.align = "all" function Webview:onReady() -- Disable the contextmenu window Webview.contextmenu = false end -- shows the window win:show() while win.visible do ui.update() end