Preview

Entity

2min

The entity component allows the user to use entity (sections, field-rows and entity-fields) as the preview content.

Document image

Document image


This example displays a preview after long-pressing the widget See the full example on GitHub.

entity-longpress-widget

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 entity 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 examples of LongPress onPress and entity-detail in GitHub.

entity-longpress-onPress
entity-detail

Document image




Document image


This example displays a preview after long-pressing the event in the Calendar jig (on the widget)

Document image

Document image


This example displays a preview after long-pressing the event in the Calendar jig (on the event)

See the full example of entity longpress and entity-calendar-detail in GitHub.

entity-longpress-on-calendar
entity-calendar-detail






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