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>
    $("#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
Not finding the help you need? Improve this article