jc-story-group
The schema defines the following properties:
Property | Type | Required | Description |
type | component.story-group | true | |
instanceId | InstanceId | Expression | false | |
when | Expression | boolean | false | |
options | Stories Options | true | |
Properties of the options object:
Property | Type | Required | Description |
data | string | true | Array of items you want to display. |
item | SwitchConfiguration<StoryItemContent> | true | Item displayed in list for each data item from data. It will get item in @context.current.item. Renders root item or first item where 'when' condition is true or empty. |
actionButtonTitle | string | Expression | TextWithFormat | TextLocale | false | Customize bottom action title. This property can be overwritten by `item.onPress.title` property. Default is `Show more`. |
groupName | string | Expression | TextWithFormat | TextLocale | false | Overrides jig name on story group name. |
Array of items you want to display.
Item displayed in list for each data item from data. It will get item in @context.current.item. Renders root item or first item where 'when' condition is true or empty.
Customize bottom action title. This property can be overwritten by item.onPress.title property. Default is Show more.
Default: "Show more"
Overrides jig name on story group name.
The schema defines the following additional types:
Item configuration or collection of items configurations with when condition. Renders root item or first item where 'when' condition is true or empty.
The object must be any of the following types:
The object is an array with all elements of the type SwitchItem<StoryItemContent>.
The object must be any of the following types:
Properties of the JCStoriesImageConfig object:
Property | Type | Required | Description |
type | component.image | true | |
instanceId | InstanceId | Expression | false | |
when | Expression | boolean | false | |
options | Image Options | true | |
Properties of the options object:
Property | Type | Required | Description |
title | string | Expression | TextWithFormat | TextLocale | false | Title that could be displayed on/next to the image based on current context. |
subtitle | string | Expression | TextWithFormat | TextLocale | false | Subtitle that could be displayed on/next to the image based on current context. |
resizeMode | ResizeMode | false | Determines how to resize the image when the frame doesn't match the raw image dimensions.'cover': Scale the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or larger than the corresponding dimension of the view (minus padding).'contain': Scale the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or less than the corresponding dimension of the view (minus padding).'stretch': Scale width and height independently, This may change the aspect ratio of the src.'center': Scale the image down so that it is completely visible, if bigger than the area of the view. The image will not be scaled up. |
source | JCImageURISource | true | The image source (either a remote URL or a local file resource). The currently supported formats are png, jpg, jpeg, bmp, gif, webp (Android only), psd (iOS only). |
onPress | false | Action Keg component that will be triggered by pressing on this image. |
Title that could be displayed on/next to the image based on current context.
Subtitle that could be displayed on/next to the image based on current context.
Determines how to resize the image when the frame doesn't match the raw image dimensions.
'cover': Scale the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or larger than the corresponding dimension of the view (minus padding).
'contain': Scale the image uniformly (maintain the image's aspect ratio) so that both dimensions (width and height) of the image will be equal to or less than the corresponding dimension of the view (minus padding).
'stretch': Scale width and height independently, This may change the aspect ratio of the src.
'center': Scale the image down so that it is completely visible, if bigger than the area of the view. The image will not be scaled up.
The image source (either a remote URL or a local file resource). The currently supported formats are png, jpg, jpeg, bmp, gif, webp (Android only), psd (iOS only).
Action Keg component that will be triggered by pressing on this image.
This element must be one of the following enum values:
- contain
- cover
- stretch
- center
Properties of the JCImageURISource object:
Property | Type | Required | Description |
uri | string | string | true | |
The object must be any of the following types:
Properties of the JCVideoPlayerOnStoriesConfig object:
Property | Type | Required | Description |
type | component.video-player | true | |
instanceId | InstanceId | Expression | false | |
when | Expression | boolean | false | |
options | Video Player Options stories | 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) |
thumbnailUri | string | string | true | URI of thumbnail of the video. Like `https://videos.com/images/video\-preview\-image.jpg\` |
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)
URI of thumbnail of the video. Like https://videos.com/images/video-preview-image.jpg
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
Properties of the SwitchItem<StoryItemContent> object:
Property | Type | Required | Description |
when | string | false | |
item | StoryItemContent | true | |