filesFieldString(default: "files")

Specifies the field name in the data source from which the array of files attached to a message will be read.

Example

<div id="chat"></div>
<script>
let messagesData = [
    { 
        id: 1, 
        text: "Check out these files!", 
        authorId: "user1", 
        authorName: "John",
        attachments: [
            { name: "document.pdf", size: 12345, extension: "pdf" }
        ],
        timestamp: new Date() 
    }
];

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