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

MessageActions.icon

configuration

Defines the icon class for the context menu action.

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.

messageActions.icon

String|Object
<div id="chat"></div>
<script>
let messagesData = [
    {
        id: 1,
        text: "Right-click this message to see the context menu with a reply action that has an undo icon.",
        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: "Icons make context menu actions more intuitive and visually appealing.",
        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({
    messageActions: [
        { name: "reply", text: "Reply", icon: "undo" }
    ],
    authorId: "user2",
    dataSource: messagesData
});
</script>

The name of the SVG icon.

<div id="chat"></div>
<script>
let messagesData = [
    {
        id: 1,
        text: "Right-click this message to see the context menu with a reply action that has an undo icon.",
        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: "Icons make context menu actions more intuitive and visually appealing.",
        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({
    messageActions: [
        { name: "reply", text: "Reply", icon: { name: "undo" } }
    ],
    authorId: "user2",
    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: "Right-click this message to see the context menu with a reply action that has an undo icon.",
        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: "Icons make context menu actions more intuitive and visually appealing.",
        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({
    messageActions: [
        { name: "reply", text: "Reply", icon: { name: "undo", variant: "outline" } }
    ],
    authorId: "user2",
    dataSource: messagesData
});
</script>