messageToolbarActionsArray
Defines the collection of actions that will be rendered in the message toolbar.
Example
<div id="chat"></div>
<script>
let messagesData = [
{
id: 1,
text: "Hover over this message to see the custom toolbar with edit and delete actions.",
authorId: "user1",
authorName: "John Doe",
authorImageUrl: "https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg",
timestamp: new Date(2026, 0, 1, 9, 0)
},
{
id: 2,
text: "The toolbar actions make it easy to interact with messages!",
authorId: "user2",
authorName: "Jane Smith",
authorImageUrl: "https://demos.telerik.com/kendo-ui/content/web/Customers/LONEP.jpg",
timestamp: new Date(2026, 0, 1, 9, 5)
}
];
$("#chat").kendoChat({
messageToolbarActions: [
{ name: "edit", icon: "pencil" },
{ name: "delete", icon: "trash" }
],
authorId: "user1",
dataSource: messagesData
});
</script>
In this article