jc-chat
The schema defines the following properties:
Property | Type | Required | Description |
type | component.chat | true | |
instanceId | InstanceId | Expression | false | |
when | Expression | boolean | false | |
options | Chat Options | true | |
Properties of the options object:
Property | Type | Required | Description |
item | JCChatMessageConfig | true | |
onSend | true | Action that will be triggered by pressing on a message. | |
data | string | true | Array of items you want to display. |
Action that will be triggered by pressing on a message.
Array of items you want to display.
The schema defines the following additional types:
Card component used mostly in custom components
Properties of the JCChatMessageConfig object:
Property | Type | Required | Description |
type | component.chat-message | true | |
instanceId | InstanceId | Expression | false | |
when | Expression | boolean | false | |
options | Chat Message Options | true | |
Properties of the options object:
Property | Type | Required | Description |
onPress | false | Action that will be triggered by pressing on this component. | |
message | string | Expression | TextWithFormat | TextLocale | true | Message content that will be loaded in the chat message. |
sentAt | string | Expression | TextWithFormat | TextLocale | false | Timestamp when message was sent |
sender | User info related to the sender of each message | true | |
isAuthor | boolean | string | true | Is app user author of this message |
Action that will be triggered by pressing on this component.
Message content that will be loaded in the chat message.
Timestamp when message was sent
Properties of the sender object:
Property | Type | Required | Description |
name | string | Expression | TextWithFormat | TextLocale | true | |
Is app user author of this message
The object must be any of the following types: