Components

jig-header

6min

The jig-header component can be used in any type of . It serves as a container for specifying headers. It cannot be used without a component image, location, or video-player inside the component.

The images can be preloaded and cached using the asset folder's images file. The images will be displayed even when you are offline. For more details, refer to Assets.

Configuration options



Core structure



children

Specifies which component will be used inside the jig-header. There are three options:

height

Specifies the height of the header.

  • small
  • medium

actions

Choose an action from the available list, such as go-to to open a different 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 title and overall screen design.
  • To prevent the title and header action links from overlapping while scrolling, use either one text action or up to three icon actions.
    


Examples and code snippets 

Header with image
Header with image

Header with image
Header with image


This example shows a component.jig-header with property children: component.imageand the difference between the set heights.

Examples: See the code samples using static data in GitHub for small and medium headers.

small
medium

Location in header
Location in header


This example shows a component.jig-header with property children: component.location and the difference between the set heights. Refer to the location component for additional location setup options.

Examples: See the code samples using static data in GitHub for small and medium headers.

location-as-header(small)
location-as-header(medium)
datasource

Header with video player
Small - header with video player

Header with video player
Medium - 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.

small
medium

Jig header with an action
Jig header with an action


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 website.



small

Jig header with icon actions
Jig header with icon actions


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 title when scrolling. The open-url actions open various websites.



small