fileActions.nameString
Defines the name identifier for the context menu action. This is used internally to identify which action was triggered.
Example
<div id="chat"></div>
<script>
let messagesData = [
{
id: 1,
text: "Document attached:",
authorId: "user1",
authorName: "John Doe",
authorImageUrl: "https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg",
files: [{ name: "contract.pdf", size: 890000, extension: "pdf" }],
timestamp: new Date(2026, 0, 1, 9, 0)
}
];
$("#chat").kendoChat({
fileActions: [
{ name: "preview", text: "Preview", icon: "eye" }
],
authorId: "user2",
dataSource: messagesData
});
</script>
In this article