jc-dropdown-item
The schema defines the following properties:
Property | Type | Required | Description |
type | component.dropdown-item | true | |
instanceId | InstanceId | Expression | false | |
when | Expression | boolean | false | |
options | Step Item Options | true | |
Properties of the options object:
Property | Type | Required | Description |
title | string | Expression | TextWithFormat | TextLocale | true | Title displayed on list item |
value | string | true | Value of the item. It has to be unique for each item. Usually it is ID of the record from DB. |
subtitle | string | Expression | TextWithFormat | TextLocale | false | Description of step displayed on list item as subtitle |
description | string | Expression | TextWithFormat | TextLocale | false | Description of step displayed on list item as subtitle |
leftElement | icon | AvatarElement | ImageElement | false | |
Title displayed on list item
Value of the item. It has to be unique for each item. Usually it is ID of the record from DB.
Additional restrictions:
- Regex pattern: ^=@ctx\.current\.item\.[a-zA-Z][a-zA-Z0-9_-]{0,48}[a-zA-Z0-9]$
Description of step displayed on list item as subtitle
Description of step displayed on list item as subtitle
The object must be any of the following types:
The schema defines the following additional types:
Avatar
Properties of the AvatarElement object:
Property | Type | Required | Description |
element | avatar | true | Type of element |
text | string | Expression | TextWithFormat | TextLocale | true | Text displayed when uri is empty. |
uri | string | string | false | Source of image displayed as avatar |
onPress | false | Action Keg component that will be triggered by pressing on this button. |
Text displayed when uri is empty.
Source of image displayed as avatar
The object must be any of the following types:
Action Keg component that will be triggered by pressing on this button.
Properties of the ImageElement object:
Property | Type | Required | Description |
element | image | true | Type of element |
text | string | Expression | TextWithFormat | TextLocale | true | Text displayed when uri is empty. |
uri | string | string | false | Source of image displayed as avatar |
onPress | false | Action Keg component that will be triggered by pressing on this button. | |
resizeMode | ResizeMode | false | Image resize mode |
Text displayed when uri is empty.
Source of image displayed as avatar
The object must be any of the following types:
Action Keg component that will be triggered by pressing on this button.
Image resize mode
This element must be one of the following enum values:
- contain
- cover
- stretch
- center
