attachmentsFieldString(default: "attachments")

The field of the message data item that provides the rich attachments array. Each attachment object can contain contentType, title, subtitle, thumbnailUrl, and actions properties.

Example

<div id="chat"></div>
<script>
let messagesData = [
    {
        id: 1,
        text: "Message with custom attachments field:",
        authorId: "bot",
        authorName: "Bot",
        timestamp: new Date(2026, 0, 1, 9, 0),
        cards: [
            { contentType: "card", title: "Custom Field Card", subtitle: "Mapped via attachmentsField" }
        ]
    }
];

$("#chat").kendoChat({
    attachmentsField: "cards",
    authorId: "user1",
    dataSource: messagesData
});
</script>
In this article
attachmentsField
Not finding the help you need?
Contact Support