jc-expander
The schema defines the following properties:
Property | Type | Required | Description |
type | component.expander | true | |
instanceId | InstanceId | Expression | false | |
when | Expression | boolean | false | |
options | Expander Options | true | |
Properties of the options object:
Property | Type | Required | Description |
header | object | false | Configuration of header |
onContentPress | false | Action triggered while pressing on content | |
children | Array<jc-avatar | jc-bar-chart | jc-entity | jc-form | jc-image | jc-interactive-image | jc-line-chart | jc-list | jc-location | jc-pie-chart | jc-stepper | JCVideoPlayerOnJigConfig | jc-web-view | jc-custom-component> | true | Defined content of the expander |
isInitiallyCollapsed | boolean | string | false | If the expander is initially collapsed |
Configuration of header
Properties of the header object:
Property | Type | Required | Description |
leftElement | text | false | Possible left element. For example an ordering number |
centerElement | true | Main part of the header |
Possible left element. For example an ordering number
Properties of the leftElement object:
Property | Type | Required | Description |
title | string | Expression | TextWithFormat | TextLocale | true | Displayed value - text. |
element | text | true | Type of element |
Displayed value - text.
centerElement (jc-stage | jc-titles | jc-custom-component, required)
Main part of the header
The object must be any of the following types:
Action triggered while pressing on content
children (Array<jc-avatar | jc-bar-chart | jc-entity | jc-form | jc-image | jc-interactive-image | jc-line-chart | jc-list | jc-location | jc-pie-chart | jc-stepper | JCVideoPlayerOnJigConfig | jc-web-view | jc-custom-component>, required)
Defined content of the expander
The elements of the array must match at least one of the following properties:
If the expander is initially collapsed
The object must be any of the following types:
Default: true
The schema defines the following additional types:
FormChildrenFields (jc-text-field | jc-checkbox | jc-email-field | jc-number-field | jc-dropdown | jc-date-picker | jc-signature-field | jc-media-field | jc-avatar-field)
The object must be any of the following types:
Properties of the JCVideoPlayerOnJigConfig object:
Property | Type | Required | Description |
type | component.video-player | true | |
instanceId | InstanceId | Expression | false | |
when | Expression | boolean | false | |
options | Video Player Options jigs | true | |
Properties of the options object:
Property | Type | Required | Description |
url | string | string | true | URL of the video |
title | string | Expression | TextWithFormat | TextLocale | false | Title of the video |
subtitle | string | Expression | TextWithFormat | TextLocale | false | Subtitle of the video |
ratio | Ratio | false | Aspect ratio of the video (default = 16:9, only for non-YouTube videos) |
autoplay | boolean | string | false | Autoplay the video (default = true) |
loop | boolean | string | false | Loop the video (default = true) |
onPress | false | Action Keg component that will be triggered by pressing on this image. |
URL of the video
The object must be any of the following types:
Title of the video
Subtitle of the video
Aspect ratio of the video (default = 16:9, only for non-YouTube videos)
Autoplay the video (default = true)
The object must be any of the following types:
Loop the video (default = true)
The object must be any of the following types:
Action Keg component that will be triggered by pressing on this image.
This element must be one of the following enum values:
- 16:9
- 4:3