Webview.parent readonly property


Get the parent object that owns the Webview.

Example

local ui = require "ui" require "webview" -- create a simple Webview local win = ui.Window("Webview.parent sample", 640, 480) local Webview = ui.Webview(win, "https://luart.org", 0, 50, 640, 500) local button = ui.Button(win, "Click to show Webview.parent") button:center() button.y = 10 function button:onClick() ui.info("Webview's parent is "..tostring(Webview.parent)) end win:show() -- update the user interface until the user closes the Window repeat ui.update() until not win.visible