self:zoom
Client
Sets the zoom level of the webview
Syntax
local status = self:zoom(
value
)Parameters
| Type | Name | Description |
|---|---|---|
float | value | Zoom level to apply. 1.0 is the default zoom level |
Returns
| Type | Name | Description |
|---|---|---|
bool | status | true on successful execution, or false on failure |
Examples
local wv = webview.create()
-- Reset to default zoom
wv:zoom(1.0)
-- Zoom in
wv:zoom(1.5)
-- Zoom out
wv:zoom(0.75)