New to Kendo UI for jQuery? Start a free 30-day trial

FileActions.icon

configuration

Defines the icon class for the context menu action. The icon appears next to the action text in the context menu.

Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.

fileActions.icon

String|Object
<div id="chat"></div>
<script>
let messagesData = [
    {
        id: 1,
        text: "Check out this file:",
        authorId: "user1",
        authorName: "John Doe",
        authorImageUrl: "https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg",
        files: [{ name: "image.jpg", size: 156000, extension: "jpg" }],
        timestamp: new Date(2026, 0, 1, 9, 0)
    }
];

$("#chat").kendoChat({
    fileActions: [
        { name: "download", text: "Download", icon: "download" }
    ],
    authorId: "user1",
    dataSource: messagesData
});
</script>

The name of the SVG icon.

<div id="chat"></div>
<script>
let messagesData = [
    {
        id: 1,
        text: "Check out this file:",
        authorId: "user1",
        authorName: "John Doe",
        authorImageUrl: "https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg",
        files: [{ name: "image.jpg", size: 156000, extension: "jpg" }],
        timestamp: new Date(2026, 0, 1, 9, 0)
    }
];

$("#chat").kendoChat({
    fileActions: [
        { name: "download", text: "Download", icon: { name: "download" } }
    ],
    authorId: "user1",
    dataSource: messagesData
});
</script>

The SVG icon variant. Supported values are outline, solid, and duotone. The variant applies to SVG rendering and is ignored for font icons.

<div id="chat"></div>
<script>
let messagesData = [
    {
        id: 1,
        text: "Check out this file:",
        authorId: "user1",
        authorName: "John Doe",
        authorImageUrl: "https://demos.telerik.com/kendo-ui/content/web/Customers/RICSU.jpg",
        files: [{ name: "image.jpg", size: 156000, extension: "jpg" }],
        timestamp: new Date(2026, 0, 1, 9, 0)
    }
];

$("#chat").kendoChat({
    fileActions: [
        { name: "download", text: "Download", icon: { name: "download", variant: "outline" } }
    ],
    authorId: "user1",
    dataSource: messagesData
});
</script>