\Kendo\UI\TreeListColumnCommandItem

A PHP class representing the commandItem setting of TreeListColumnCommand.

Methods

className

The CSS class 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 executed when the user clicks the command button. The function receives a jQuery Event as an argument.The function context (available via 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() { }'));
?>

imageClass

The CSS class 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. The built-in command names are "edit", "createChild" and "destroy". Check the columns.command section for additional important information. When set to a custom value, the name is rendered as a data-command attribute.

Returns

\Kendo\UI\TreeListColumnCommandItem

Parameters

$value string

Example

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

text

The text displayed by the command button. If not set the name option is used as the button text.

Returns

\Kendo\UI\TreeListColumnCommandItem

Parameters

$value string

Example

<?php
$commandItem = new \Kendo\UI\TreeListColumnCommandItem();
$commandItem->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