ChatPropsPremium
Configuration for mapping custom data fields to Chat properties. Lets the Chat work with various data source formats by mapping your field names to expected Chat interface properties.
Name | Type | Default | Description |
---|---|---|---|
allowMessageCollapse? |
|
Enables expand or collapse for messages to save space. | |
attachmentsField? |
|
|
Field name for message attachments. |
attachmentTemplate? |
|
React functional or class component used as an attachment template (see example). The corresponding | |
authorId |
|
ID of the local user. Identifies messages 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). |
authorImageUrlField? |
|
|
Field name for message author avatar URL (when flattened). |
authorNameField? |
|
|
Field name for message author name (when flattened). |
className? |
|
CSS class of the Chat DOM element. | |
dir? |
|
Direction of the Chat component. | |
fileActions? |
|
Actions displayed for files in the message. | |
filesField? |
|
|
Field name for file attachments. |
headerTemplate? |
|
Template for the header of the Chat component. | |
height? |
|
Height of the Chat. | |
id? |
|
ID of the Chat component. | |
idField? |
|
|
Field name for message ID. |
inputValue? |
|
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 customization or override of the default message box item (see example). | |
messageContextMenuActions? |
|
Actions displayed in the message context menu. | |
messages |
|
Messages of the Chat. Can be an array of | |
messageTemplate? |
|
React functional or class component used as a message template. The corresponding | |
messageToolbarActions? |
|
Actions displayed in the message toolbar. | |
messageWidthMode? |
|
|
Sets the message width mode.
|
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. Provides the action and target message. | |
onDownload? |
|
Fires when a download action is executed on a message. Provides the selected files and parent message. | |
onFileAction? |
|
Fires when a file action is executed on a message. Provides the action and target file. | |
onInputValueChange? |
|
Fires when the input value changes. Provides the new input value. | |
onSendMessage? |
|
Fires when the user types a message and clicks Send or presses Enter. Emits
| |
onSuggestionClick? |
|
Fires when a suggestion is clicked. Provides the clicked suggestion. | |
onToolbarAction? |
|
Fires when a toolbar action is executed on a message. Provides the action and target message. | |
onUnpin? |
|
Fires when a message is unpinned. Provides the message. | |
placeholder? |
|
Text displayed inside the new message input when 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? |
|
Template for status items below each message. | |
suggestedActionsField? |
|
|
Field name for the |
suggestions? |
|
List of message suggestions displayed above the message input. | |
suggestionTemplate? |
|
Template for suggestion items displayed above the message input. | |
textField? |
|
|
Field name for message text content. |
timestampField? |
|
|
Field name for message timestamp. |
timestampTemplate? |
|
Template for the timestamp of the message. | |
typingField? |
|
|
Field name for the |
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? |
|
Width of the Chat. |