messageToolbarActions.nameString
Defines the name identifier for the toolbar action.
Example
<div id="chat"></div>
<script>
let messagesData = [
{
id: 1,
text: "This message has a bookmark action in its toolbar. The 'name' property is used to identify which action was clicked.",
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: "Action names are important for handling clicks in event handlers.",
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: "bookmark", icon: "star" }
],
authorId: "user1",
dataSource: messagesData
});
</script>
In this article