\Kendo\UI\TreeListToolbarItem

A PHP class representing the toolbarItem setting of TreeListToolbar.

Methods

click

The click handler of the toolbar command. Used for custom toolbar commands.

Returns

\Kendo\UI\TreeListToolbarItem

Parameters

$value \Kendo\JavaScriptFunction

Example

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

name

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

Returns

\Kendo\UI\TreeListToolbarItem

Parameters

$value string

Example

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

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\TreeListToolbarItem

Parameters

$value string

Example

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

Give article feedback

Tell us how we can improve the information

close
Dummy