New to KendoReactStart a free 30-day trial

MessageModel
Premium

Represents the data item of a single Message.

NameTypeDefaultDescription

attachmentLayout?

AttachmentLayout

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

attachments?

Attachment[]

Optional message attachments (see example).

author

User

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.

isLoading?

boolean

Indicates if the message is loading. If true, the Chat displays a skeleton placeholder instead of the content.

isPinned?

boolean

Indicates if the message is pinned.

pinnedAt?

Date

Date and time when the message was pinned.

pinnedBy?

User

User who pinned the message.

replyToId?

string | number

ID of the message this message replies to.

selectionIndex?

number

Index used for keyboard selection navigation.

status?

string

Optional status string for the message. Displays when you select the message by mouse or keyboard.

suggestedActions?

Action[]

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.

timestamp?

Date

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.

Not finding the help you need?
Contact Support