Webview:show()method
Show and activate the Webview (events can now be fired).
Return value
This function returns no value.Example
--! luart-extensions
import ui
import webview
-- create a simple Webview
local win = ui.Window("Webview.visible sample", 640, 480)
local Webview = ui.Webview(win, { url = "https://www.google.com" }, 0, 50, 640, 430)
local button = ui.Button(win, "Show the Webview widget")
button:center()
button.y = 10
await win:showasync()
function button:onClick()
Webview:show()
end
function Webview:onReady()
self:hide()
end