ChatPropsPremium
Configuration interface for mapping custom data fields to Chat component properties. This allows the Chat component to work with various data source formats by mapping custom field names to the expected Chat interface properties.
Name | Type | Default | Description |
---|---|---|---|
allowMessageCollapse? |
|
Enables the expand/collapse functionality for the messages in the Chat. This allows users to collapse or expand messages to save space in the chat window. | |
attachmentsField? |
|
|
Field name for message attachments. |
attachmentTemplate? |
|
A React functional or class component which is used as an attachment template (see example). The corresponding | |
authorId |
|
Sets the ID of the local user. The ID identifies messages that are authored by the local user. | |
authorIdField? |
|
|
Field name for message author ID. |
authorImageAltTextField? |
|
|
Field name for alt text of the author's avatar (when flattened in data source). |
authorImageUrlField? |
|
|
Field name for message author avatar URL (when flattened in data source). |
authorNameField? |
|
|
Field name for message author name (when flattened in data source). |
className? |
|
Sets a class of the Chat DOM element. | |
dir? |
|
Sets the direction of the Chat component. | |
fileActions? |
| ||
filesField? |
|
|
Field name for file attachments. |
headerTemplate? |
|
Defines the template for the header of the Chat component. | |
height? |
|
Sets the height of the Chat. | |
id? |
|
Sets the id of the Chat component. | |
idField? |
|
|
Field name for message ID. |
inputValue? |
|
Sets the input value of the Chat component. | |
isDeletedField? |
|
|
Field name for message deletion status. |
isPinnedField? |
|
|
Field name for message pinned status. |
message? |
|
Represents the ChatMessage component. | |
messageBox? |
|
Enables the customization or the override of the default message box item in the Conversational UI (see example). | |
messageContextMenuActions? |
|
Defines the actions that will be displayed in the message context menu. | |
messages |
|
Sets the messages of the Chat. Can be an array of Message objects or raw data objects that will be mapped using the field mapping configuration. | |
messageTemplate? |
|
A React functional or class component which is used as a message template. The corresponding | |
messageToolbarActions? |
|
Defines the actions that will be displayed in the message toolbar. This can include buttons for actions like reply, edit, delete, etc. | |
messageWidthMode? |
|
Sets the message width mode. The default value is
| |
onActionExecute? |
|
Fires when the user clicks a quick action button. The Chat internally handles the | |
onContextMenuAction? |
|
Fires when a context menu action is executed on a message. The event contains the action that was executed and the target message. | |
onDownload? |
|
Fires when a download action is executed on a message. The event contains the action that was executed and the target file. | |
onFileAction? |
|
Fires when a file action is executed on a message. The event contains the action that was executed and the target file. | |
onInputValueChange? |
|
Fires when the input value changes. The event contains the new input value. | |
onSendMessage? |
|
Fires when the user types a message and clicks the Send button or presses Enter. Emits the
| |
onSuggestionClick? |
|
Fires when a suggestion is clicked. The event contains the clicked suggestion. | |
onToolbarAction? |
|
Fires when a toolbar action is executed on a message. The event contains the action that was executed and the target message. | |
onUnpin? |
|
Fires when a message in unpinned. The event contains the message that was unpinned. | |
placeholder? |
|
The text which is visible inside the new message input when the message input is empty. | |
replyToIdField? |
|
|
Field name for reply-to message ID. |
sendButtonConfig? |
|
Configures the appearance and behavior of the send button in the Chat component. | |
speechToTextConfig? |
|
Enables the speech-to-text functionality in the Chat. This allows users to dictate messages instead of typing them. | |
statusField? |
|
|
Field name for message status. |
statusTemplate? |
|
Defines the template for the status items below each message. | |
suggestedActionsField? |
|
|
Field name for the suggestedActions prop of a message. |
suggestions? |
|
Defines the list of message suggestions that will be displayed above the message input. | |
suggestionTemplate? |
|
Defines the template for the suggestions items that will be displayed above the message input. | |
textField? |
|
|
Field name for message text content. |
timestampField? |
|
|
Field name for message timestamp. |
timestampTemplate? |
|
Defines the template for the timestamp of the message. | |
typingField? |
|
|
Field name for the typing prop of a message. |
uploadConfig? |
|
Sets the upload configuration for the Chat component. This can be used to customize the file upload behavior, such as accepted file types and maximum file size. | |
width? |
|
Sets the width of the Chat. |