Components

jig-header

5min

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


Examples and code snippets 

Jig-header with image

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:

Small: See the full code sample using static data in GitHub. Medium: See the full code sample using static data in GitHub.

small
medium


Jig-header with location

Small - header with location
Small - header with location

Medium - header with location
Medium - header with location


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

Examples:

Small: See the full code sample using static data in GitHub. Medium: See the full code sample using static data in GitHub.

small
medium


Jig-header with video-player

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:

Small: See the full code sample using static data in GitHub. Medium: See the full code sample using static data in GitHub.

small
medium