authorImageUrlFieldString
(default: "authorImageUrl")
Specifies the field name in the data source from which the URL for the author's avatar image will be read.
Example
<div id="chat"></div>
<script>
let messagesData = [
{
id: 1,
text: "Hello!",
authorId: "user1",
authorName: "John",
avatarUrl: "https://example.com/avatar.jpg",
timestamp: new Date()
}
];
$("#chat").kendoChat({
authorImageUrlField: "avatarUrl",
dataSource: messagesData
});
</script>
In this article