New to KendoReactStart a free 30-day trial

MessageModel

Interface

Represents the data item of a single Message.

Definition

Package:@progress/kendo-react-conversational-ui

Properties

Layout used for displaying message attachments, if any (see example).

Optional message attachments (see example).

Author of the message.

files?

any[]

Files attached to the message.

id

string | number

Unique identifier of the message.

isDeleted?

boolean

Indicates if the message has been deleted.

isFailed?

boolean

Indicates whether the message has failed to send. When true, renders a retry button that fires the onResendMessage event.

Default:

false

isPinned?

boolean

Indicates if the message is pinned.

Date and time when the message was pinned.

User who pinned the message.

replyToId?

string | number

ID of the message this message replies to.

Index used for keyboard selection navigation.

Sets the current status of the message. The status appears when the message is selected by clicking or through keyboard navigation.

Suggested quick actions displayed below this message (see example).

The Chat displays suggested actions only for the last message in the conversation.

text?

string

Optional text for the message. Some messages contain only attachments or quick actions.

Time when the message was composed.

typing?

boolean

Indicates if the user is still typing the message. If true, the Chat displays a typing indicator instead of the message.