<webview>
Shows a website or an HTML string inside your app, like an <iframe>. Use it for help pages, terms of service or sign-in pages. To embed another Lynx bundle, use <frame>.
Usage
src/app/help.ts
Import LYNX_ELEMENTS in your component (see Elements).
Attributes
Clay is a separate Lynx renderer used by Lynx's desktop apps. AngularLynx's iOS, Android and web builds don't use it, so you can ignore the Clay-only rows.
Plus the common attributes, such as id, class and style.
src in the web preview
In the web preview:
- Chrome and Edge load it without the cookies the site has in the browser.
- Firefox and Safari show a blocked page, while
bindloadstill fires. Check URLs in Chrome or on a device, and usehtmlin those browsers.
Events
Read the payload from $event.detail. Angular types $event for each event: see Element events.
Plus the common events, such as bindtap.
Methods
These UI methods (Glossary) control the page. Call them with invoke() on the element (see Call element methods).
Related
<frame>: embed another Lynx bundle<cover-view>: draw Lynx content above a web view on desktop- Call element methods
