userStatusTemplateFunction(default: null)

The template used to render the user status content shown next to the latest message in a receiver group. The function receives a context object with a message field, where message.author contains the normalized author data, and should return an HTML string.

Example

<div id="chat"></div>
<script>
$("#chat").kendoChat({
    userStatusTemplate: function(ctx) {
        return '<div class="custom-typing"><em>' +
               kendo.htmlEncode(ctx.message.author.name || "") + ' is typing...</em></div>';
    },
    authorId: "user1"
});
</script>
In this article
userStatusTemplate
Not finding the help you need?
Contact Support