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

RootItem

configuration

The root item to be rendered by the Chart Breadcrumb.

The default root item is { type: 'rootitem', icon: 'home', text: 'Home', showIcon: true }.

rootItem

Object
<nav id="breadcrumb"></nav>
<div id="chart"></div>
<script>
  $('#chart').kendoChart({
    series: [{
      type: 'column',
      name: 'Total Sales By Company',
      field: 'sales',
      categoryField: 'company',
      drilldownField: 'details',
      data: [{
          company: 'Company A',
          sales: 100,
          details: {
              name: 'Company A Sales By Product',
              type: 'column',
              field: 'sales',
              categoryField: 'product',
              data: [{
                product: 'Product 1',
                sales: 80
              }, {
                product: 'Product 2',
                sales: 20
              }]
          }
      }]
    }]
  });

  $('#breadcrumb').kendoChartBreadcrumb({
    chart: '#chart',
    rootItem: { type: 'rootitem', text: 'Home', showIcon: false, showText: true }
  });
</script>

Defines whether to encode the item's text. To render entities or HTML, set it to false.

Default: true

<div id="chart"></div>
<div id="breadcrumb"></div>
<script>
$("#chart").kendoChart({
    categoryAxis: {
        categories: ["A", "B", "C"]
    },
    series: [{
        type: "column",
        data: [1, 2, 3]
    }]
});

$("#breadcrumb").kendoChartBreadcrumb({
    chart: "#chart",
    rootItem: {
        text: "&lt;Home&gt;",
        encoded: false // Allows HTML entities to be rendered
    }
});
</script>

Defines the navigation link's url of the item (rendered if navigation is true).

<div id="chart"></div>
<div id="breadcrumb"></div>
<script>
$("#chart").kendoChart({
    categoryAxis: {
        categories: ["A", "B", "C"]
    },
    series: [{
        type: "column",
        data: [1, 2, 3]
    }]
});

$("#breadcrumb").kendoChartBreadcrumb({
    chart: "#chart",
    navigation: true,
    rootItem: {
        text: "Dashboard",
        href: "/dashboard" // Navigation URL for the root item
    }
});
</script>

Defines the icon to be rendered.

<div id="chart"></div>
<div id="breadcrumb"></div>
<script>
$("#chart").kendoChart({
    categoryAxis: {
        categories: ["A", "B", "C"]
    },
    series: [{
        type: "column",
        data: [1, 2, 3]
    }]
});

$("#breadcrumb").kendoChartBreadcrumb({
    chart: "#chart",
    rootItem: {
        text: "Home",
        icon: "home", // Icon name to be rendered
        showIcon: true
    }
});
</script>

Defines the icon classes (the span element).

<div id="chart"></div>
<div id="breadcrumb"></div>
<script>
$("#chart").kendoChart({
    categoryAxis: {
        categories: ["A", "B", "C"]
    },
    series: [{
        type: "column",
        data: [1, 2, 3]
    }]
});

$("#breadcrumb").kendoChartBreadcrumb({
    chart: "#chart",
    rootItem: {
        text: "Home",
        icon: "home",
        iconClass: "custom-icon large-icon", // Custom CSS classes for the icon span element
        showIcon: true
    }
});
</script>

Defines the item classes (the li element).

<div id="chart"></div>
<div id="breadcrumb"></div>
<script>
$("#chart").kendoChart({
    categoryAxis: {
        categories: ["A", "B", "C"]
    },
    series: [{
        type: "column",
        data: [1, 2, 3]
    }]
});

$("#breadcrumb").kendoChartBreadcrumb({
    chart: "#chart",
    rootItem: {
        text: "Home",
        itemClass: "custom-breadcrumb-item highlighted" // Custom CSS classes for the li element
    }
});
</script>

Defines the link classes (the a element).

<div id="chart"></div>
<div id="breadcrumb"></div>
<script>
$("#chart").kendoChart({
    categoryAxis: {
        categories: ["A", "B", "C"]
    },
    series: [{
        type: "column",
        data: [1, 2, 3]
    }]
});

$("#breadcrumb").kendoChartBreadcrumb({
    chart: "#chart",
    navigation: true,
    rootItem: {
        text: "Home",
        href: "/home",
        linkClass: "custom-breadcrumb-link bold-link" // Custom CSS classes for the a element
    }
});
</script>

Defines whether to show the icon. Default value is true for rootItem and false for item.

<div id="chart"></div>
<div id="breadcrumb"></div>
<script>
$("#chart").kendoChart({
    categoryAxis: {
        categories: ["A", "B", "C"]
    },
    series: [{
        type: "column",
        data: [1, 2, 3]
    }]
});

$("#breadcrumb").kendoChartBreadcrumb({
    chart: "#chart",
    rootItem: {
        text: "Home",
        icon: "home",
        showIcon: false // Hide the icon for the root item
    }
});
</script>

Defines whether to show the text. Default value is false for rootItem and true for item.

<div id="chart"></div>
<div id="breadcrumb"></div>
<script>
$("#chart").kendoChart({
    categoryAxis: {
        categories: ["A", "B", "C"]
    },
    series: [{
        type: "column",
        data: [1, 2, 3]
    }]
});

$("#breadcrumb").kendoChartBreadcrumb({
    chart: "#chart",
    rootItem: {
        text: "Home",
        icon: "home",
        showText: true, // Show the text for the root item
        showIcon: true
    }
});
</script>

Defines the text of the item.

<div id="chart"></div>
<div id="breadcrumb"></div>
<script>
$("#chart").kendoChart({
    categoryAxis: {
        categories: ["A", "B", "C"]
    },
    series: [{
        type: "column",
        data: [1, 2, 3]
    }]
});

$("#breadcrumb").kendoChartBreadcrumb({
    chart: "#chart",
    rootItem: {
        text: "Root Category" // Text displayed for the root item
    }
});
</script>

Defines the type of the item "rootitem" or "item".

<div id="chart"></div>
<div id="breadcrumb"></div>
<script>
$("#chart").kendoChart({
    categoryAxis: {
        categories: ["A", "B", "C"]
    },
    series: [{
        type: "column",
        data: [1, 2, 3]
    }]
});

$("#breadcrumb").kendoChartBreadcrumb({
    chart: "#chart",
    rootItem: {
        type: "rootitem", // Specifies this is the root item
        text: "Home"
    }
});
</script>