Edit this page

dataSpriteCssClassField String (default: null)

Sets the field of the data item that provides the sprite CSS class of the nodes. If an array, each level uses the field that is at the same index in the array, or the last item in the array.

Example

<style>
    #panelbar .k-sprite {
        background-image: url("https://demos.telerik.com/kendo-ui/content/shared/styles/flags.png");
    }
</style>
<div id="panelbar"></div>
<script>
var items = [
  { text: "Brazil", sprite: "brazilFlag" },
  { text: "India", sprite: "indiaFlag" }
];
$("#panelbar").kendoPanelBar({
  dataSpriteCssClassField: "sprite",
  dataSource: items
});
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy