For the complete documentation index, see llms.txt. This page is also available as Markdown.

onPress

Use the onPress event to add an action directly on the widget. This is particularly helpful in scenarios where you do not want to open a jig to perform an action, for example, tapping on a widget opens a URL or a modal.

Configuration options

onPress

Choose from the provided list of available actions, for example, use the open-url action to open a specific URL.

Examples and code snippets

Widget with onPress

In this example, tapping on the widget opens the info-modal to display information regarding Jigx.

Examples: See the full example in GitHub.

Widget with onPress
Widget with onPress
grid.jigx
  - type: component.grid-item
    options:
      size: "1x1"
      children: 
        type: component.jig-widget
        options:
          jigId: onpress_4x2    
          onPress: 
            type: action.info-modal
            options:
              modal:
                title: Welcome to Jigx
                buttonText: Close
                element: 
                  type: image
                  uri: https://archbee-image-uploads.s3.amazonaws.com/x7vdIDH6-ScTprfmi2XXX/nuSx_84sbGbtJlBxRWI5G_landingpage-s.gif?format=webp&width=1280

Last updated

Was this helpful?