\Kendo\UI\PropertyGridContextMenu
A PHP class representing the contextMenu setting of PropertyGrid.
Methods
addBodyItem
Adds one or more PropertyGridContextMenuBodyItem to the PropertyGridContextMenu.
Returns
\Kendo\UI\PropertyGridContextMenu
Parameters
$value[, $value2, ...] \Kendo\UI\PropertyGridContextMenuBodyItem|array
Example - using \Kendo\UI\PropertyGridContextMenuBodyItem
<?php
$contextMenu = new \Kendo\UI\PropertyGridContextMenu();
$bodyItem = new \Kendo\UI\PropertyGridContextMenuBodyItem();
$command = 'value';
$bodyItem->command($command);
$contextMenu->addBodyItem($bodyItem);
?>
Example - using array
<?php
$contextMenu = new \Kendo\UI\PropertyGridContextMenu();
$command = 'value';
$contextMenu->addBodyItem(array('command' => $command));
?>
Example - adding more than one PropertyGridContextMenuBodyItem
<?php
$contextMenu = new \Kendo\UI\PropertyGridContextMenu();
$first = new \Kendo\UI\PropertyGridContextMenuBodyItem();
$second = new \Kendo\UI\PropertyGridContextMenuBodyItem();
$contextMenu->addBodyItem($first, $second);
?>