jig-header
The jig-header component can be used in any type of jig. It serves as a container for specifying headers. It cannot be used without a component image, location, or video-player inside the component.
Configuration options
Some properties are common to all components, see Common component properties for a list and their configuration options.
children
Specifies which component will be used inside the jig-header. There are three options:
height
Specifies the height of the header.
smallmedium
actions
Choose an action from the available list, such as go-to to open a different jig or open-url to navigate to a website. The selected action appears as a link in the top right corner of the header. Set the icon property in the action to display the action link as an icon instead of text. Styles of actions are inherited, for example, disabling the link. You can add multiple action links in the header, but ensure they accommodate the jig title and overall screen design. To prevent the jig title and header action links from overlapping while scrolling, use either one text action or up to three icon actions.
Jigx does not recommend storing images in Dynamic Data (via any conversion), as the max file size per record is 350K.
Examples and code snippets
Jig-header with image


This example shows a component.jig-header with property children: component.image and the difference between the set heights.
Examples: See the code samples using static data in GitHub for small and medium headers.
header:
type: component.jig-header
options:
height: small
children:
type: component.image
options:
source:
uri: https://builder.jigx.com/assets/images/header.jpgheader:
type: component.jig-header
options:
height: medium
children:
type: component.image
options:
source:
uri: https://builder.jigx.com/assets/images/header.jpgJig-header with location

Jig-header with video-player


This example shows a component.jig-header with property children: component.video-player. and the difference between the set heights.
Examples: See the code samples using static data in GitHub for small and medium headers.
Jig-header with an action (text link)

This example shows a component.jig-header configured with an action. The action displays as a link in the top right corner of the header. Ensure the action is visible and not obscured by the header image or video. The open-url action is configured to open the Jigx website.
Jig-header with multiple actions (icons)

This example demonstrates a component.jig-header configured with three open-url actions, displayed as icons in the top right corner of the header. Styling is applied to two of the icons to ensure visibility. Make sure the actions are not obscured by the header image/video or the jig title when scrolling. The open-url actions open various Jigx websites.
Jig-header actions without header children
In this example, we use the jig-header action to create two actions with icons: one to open an info-modal and another to go-to a different jig.
The jig-header has no children (such as an image, location, or video player), which allows for greater flexibility in the header.
Last updated
Was this helpful?