Webview.contextmenu readwrite


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

Example

--! luart-extensions import ui require "webview" -- create a simple window local win = ui.Window("Webview.contextmenu property sample", 600, 300) local Webview = ui.Webview(win, { url = "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