\Kendo\Dataviz\UI\ChartBreadcrumb

A PHP wrapper for Kendo UI ChartBreadcrumb.

Inherits from \Kendo\UI\Widget.

Usage

To use ChartBreadcrumb in a PHP page instantiate a new instance, configure it via the available configuration methods and output it by echo-ing the result of the render method.

Using Kendo ChartBreadcrumb

<?php
// Create a new instance of ChartBreadcrumb and specify its id
$chartBreadcrumb = new \Kendo\Dataviz\UI\ChartBreadcrumb('ChartBreadcrumb');

// Configure it
$chartBreadcrumb->chart('value')

// Output it

echo $chartBreadcrumb->render();
?>

Methods

chart

The kendo.dataviz.ui.Chart instance to control or a CSS selector to its element.

Returns

\Kendo\Dataviz\UI\ChartBreadcrumb

Parameters

$value string|

Example - using string

<?php
$chartBreadcrumb = new \Kendo\Dataviz\UI\ChartBreadcrumb('ChartBreadcrumb');
$chartBreadcrumb->chart('value');
?>

rootItem

The root item to be rendered by the Chart Breadcrumb.The default root item is { type: 'rootitem', icon: 'home', text: 'Home', showIcon: true }.

Returns

\Kendo\Dataviz\UI\ChartBreadcrumb

Parameters

$value \Kendo\Dataviz\UI\ChartBreadcrumbRootItem|array

Example - using \Kendo\Dataviz\UI\ChartBreadcrumbRootItem

<?php
$chartBreadcrumb = new \Kendo\Dataviz\UI\ChartBreadcrumb('ChartBreadcrumb');
$rootItem = new \Kendo\Dataviz\UI\ChartBreadcrumbRootItem();
$encoded = true;
$rootItem->encoded($encoded);
$chartBreadcrumb->rootItem($rootItem);
?>

Example - using array

<?php
$chartBreadcrumb = new \Kendo\Dataviz\UI\ChartBreadcrumb('ChartBreadcrumb');
$encoded = true;
$chartBreadcrumb->rootItem(array('encoded' => $encoded));
?>
In this article
Not finding the help you need?