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