pub fn Webview(_: WebviewProps) -> ElementExpand description
Embedded browser chrome around a sandboxed frame. Changing src navigates; so does
the address bar, after frame_url refuses unsafe schemes. With tabs, a tab list
sits above the toolbar and reports choices through ontab.
§Props
For details, see the props struct definition.
title:AccessibleNameThe frame’s title, which names it for assistive technology.
src:StringThe page to show; a change navigates.
tabs:Vec<String>Page tab labels.
selected_tab:usizeontab:Option<EventHandler<usize>>sandbox:StringThe frame’s sandbox. Without
allow-same-originthe page runs in an opaque origin and cannot reach this page’s cookies or storage; add it knowingly.error:Option<String>Replaces the overlay’s message after a failed load.
onnavigate:Option<EventHandler<String>>onstate:Option<EventHandler<WebviewState>>class:Option<String>attributes:Vec<Attribute>