Preview

Web-view

2min

The web-view component allows the user to use an URL or pass raw HTML as the preview content.

Examples and code snippets 

Long-press on a widget

Document image

Document image


This example displays a preview after long-pressing the widget

See the full example on GitHub.

long-press-on-widget


Long-press - onPress action

Document image

Document image


This example displays a preview after long-pressing the list-item on the widget.

Document image

Document image


This example displays a preview after long-pressing the list-item in the jig. It includes the web-view component as well as the go-to actions.

As you can see in the code snippet, the original list doesn't include the preview. Our onPress action allows us to use the preview that is included in the detail jig.

See the full example of web-longpress-onpress and web-detail on GitHub.

web-view-longpress-onPress
web-detail




Updated 19 Sep 2023
Doc contributor
Did this page help you?