\Kendo\UI\PropertyGridToolbarItem

A PHP class representing the toolbarItem setting of PropertyGridToolbar.

Methods

click

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

Returns

\Kendo\UI\PropertyGridToolbarItem

Parameters

$value \Kendo\JavaScriptFunction

Example

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

icon

Specifies the icon's name that will be rendered inside the toolbar button. When you set this option, the PropertyGrid renders an additional span element inside the toolbar button which has a name set to the option value. This approach allows you to display an icon inside your custom toolbar commands.

Returns

\Kendo\UI\PropertyGridToolbarItem

Parameters

$value string

Example

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

imageClass

A class name that will be rendered inside the toolbar button. When you set this option, the PropertyGrid renders an additional span element inside the toolbar button which has a class name set to the option value. This approach allows you to display an icon inside your custom toolbar commands.

Returns

\Kendo\UI\PropertyGridToolbarItem

Parameters

$value string

Example

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

name

The name of the toolbar command. Can be either a built-in ("search", "sort", "group" or "details") or a custom string. The name is output in the HTML as a value of the data-command attribute of the button.

Returns

\Kendo\UI\PropertyGridToolbarItem

Parameters

$value string

Example

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

text

The text that is displayed by the command button. If not set, the PropertyGrid will use the name option as the button text instead.

Returns

\Kendo\UI\PropertyGridToolbarItem

Parameters

$value string

Example

<?php
$toolbarItem = new \Kendo\UI\PropertyGridToolbarItem();
$toolbarItem->text('value');
?>
In this article
Not finding the help you need?