authorNameFieldString
(default: "authorName")
Specifies the field name in the data source from which the author's display name will be read.
Example
<div id="chat"></div>
<script>
let messagesData = [
{
id: 1,
text: "Hello!",
authorId: "user1",
displayName: "John Doe",
timestamp: new Date()
}
];
$("#chat").kendoChat({
authorNameField: "displayName",
dataSource: messagesData
});
</script>
In this article