authorIdFieldString(default: "authorId")

Specifies the field name in the data source from which the message author's unique identifier will be read.

Example

<div id="chat"></div>
<script>
let messagesData = [
    { id: 1, text: "Hello!", userId: "user1", authorName: "John", timestamp: new Date() }
];

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