dataSpriteCssClassField String

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

Example

<div id="target">Target</div>
<ul id="context-menu"></ul>
<script>
    $("#context-menu").kendoMenu({
        target: "#target",
        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