\Kendo\UI\TreeListColumnCommandItem
A PHP class representing the commandItem setting of TreeListColumnCommand.
Methods
className
The CSS class that is applied to the command button.
Returns
\Kendo\UI\TreeListColumnCommandItem
Parameters
$value string
Example
<?php
$commandItem = new \Kendo\UI\TreeListColumnCommandItem();
$commandItem->className('value');
?>
click
The JavaScript function that is executed when the user clicks the command button. The function receives a jQuery event as an argument. The function context that is available through the this keyword will be set to the TreeList instance.
Returns
\Kendo\UI\TreeListColumnCommandItem
Parameters
$value \Kendo\JavaScriptFunction
Example
<?php
$commandItem = new \Kendo\UI\TreeListColumnCommandItem();
$commandItem->click(new \Kendo\JavaScriptFunction('function() { }'));
?>
icon
Specifies the icon's name of the command button.
Returns
\Kendo\UI\TreeListColumnCommandItem
Parameters
$value string
Example
<?php
$commandItem = new \Kendo\UI\TreeListColumnCommandItem();
$commandItem->icon('value');
?>
imageClass
The CSS class that is applied to the icon span of the command button.
Returns
\Kendo\UI\TreeListColumnCommandItem
Parameters
$value string
Example
<?php
$commandItem = new \Kendo\UI\TreeListColumnCommandItem();
$commandItem->imageClass('value');
?>
name
The name of the command. Commands can be built-in ("edit", "createChild" and "destroy") or custom. When set to a custom value, the name is rendered as a data-command attribute. For more information, refer to the columns.command section.
Returns
\Kendo\UI\TreeListColumnCommandItem
Parameters
$value string
Example
<?php
$commandItem = new \Kendo\UI\TreeListColumnCommandItem();
$commandItem->name('value');
?>
text
The text that is displayed by the command button. If not set, the name option is used as the button text. To have an icon button with no text, you can set the text property to an empty string.
Returns
\Kendo\UI\TreeListColumnCommandItem
Parameters
$value string
Example
<?php
$commandItem = new \Kendo\UI\TreeListColumnCommandItem();
$commandItem->text('value');
?>