dataSpriteCssClassField String

Sets the field of the data item that provides the sprite css class of the menu items.

Example

<ul id="menu"></ul>
<script>
    var imgUrl = "https://demos.telerik.com/kendo-ui/content/shared/icons/sports/swimming.png";
    $("#menu").kendoMenu({
        dataSource: {
        data: [{
                Name: "Item 1",
                UrlPath: "urlPath",
                Sprite: "spriteCssClass",
                imgUrl: "imgUrl",
                description: "some description"
            }]
        },
        dataTextField:"Name",
        dataUrlField:"UrlPath",
        dataSpriteCssClassField:"Sprite",
        dataImageUrlField:"imgUrl",
        dataContentField:"description"
    });
</script>
In this article