\Kendo\UI\GanttToolbarItem

A PHP class representing the toolbarItem setting of GanttToolbar.

Methods

name

The name of the toolbar command. Either a built-in ("append" and "pdf") or custom. The name is reflected in one of the CSS classes, which is applied to the button - k-gantt-name. This class can be used to obtain reference to the button after Gantt initialization and attach click handlers.

Returns

\Kendo\UI\GanttToolbarItem

Parameters

$value string

Example

<?php
$toolbarItem = new \Kendo\UI\GanttToolbarItem();
$toolbarItem->name('value');
?>

template

The template which renders the command. By default renders a button.

Returns

\Kendo\UI\GanttToolbarItem

Parameters

$value string |\Kendo\JavaScriptFunction

Example - using string

<?php
$toolbarItem = new \Kendo\UI\GanttToolbarItem();
$toolbarItem->template('value');
?>

Example - using \Kendo\JavaScriptFunction

<?php
$toolbarItem = new \Kendo\UI\GanttToolbarItem();
$toolbarItem->template(new \Kendo\JavaScriptFunction('function() { }'));
?>

text

The text displayed by the command button. If not set the name` option would be used as the button text instead.

Returns

\Kendo\UI\GanttToolbarItem

Parameters

$value string

Example

<?php
$toolbarItem = new \Kendo\UI\GanttToolbarItem();
$toolbarItem->text('value');
?>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy