\Kendo\UI\FileManagerContextMenu

A PHP class representing the contextMenu setting of FileManager.

Methods

activate

Fires when a sub menu or the ContextMenu gets opened and its animation finished. ContextMenu Events.

Returns

\Kendo\UI\FileManagerContextMenu

Parameters

$value \Kendo\JavaScriptFunction

Example

<?php
$contextMenu = new \Kendo\UI\FileManagerContextMenu();
$contextMenu->activate(new \Kendo\JavaScriptFunction('function() { }'));
?>

close

Fires before a sub menu or the ContextMenu gets closed. You can cancel this event to prevent closure. ContextMenu Events.

Returns

\Kendo\UI\FileManagerContextMenu

Parameters

$value \Kendo\JavaScriptFunction

Example

<?php
$contextMenu = new \Kendo\UI\FileManagerContextMenu();
$contextMenu->close(new \Kendo\JavaScriptFunction('function() { }'));
?>

deactivate

Fires when a sub menu or the ContextMenu gets closed and its animation finished. ContextMenu Events.

Returns

\Kendo\UI\FileManagerContextMenu

Parameters

$value \Kendo\JavaScriptFunction

Example

<?php
$contextMenu = new \Kendo\UI\FileManagerContextMenu();
$contextMenu->deactivate(new \Kendo\JavaScriptFunction('function() { }'));
?>

addItem

Adds one or more FileManagerContextMenuItem to the FileManagerContextMenu.

Returns

\Kendo\UI\FileManagerContextMenu

Parameters

$value[, $value2, ...] \Kendo\UI\FileManagerContextMenuItem|array

Example - using \Kendo\UI\FileManagerContextMenuItem

<?php
$contextMenu = new \Kendo\UI\FileManagerContextMenu();
$item = new \Kendo\UI\FileManagerContextMenuItem();
$command = 'value';
$item->command($command);
$contextMenu->addItem($item);
?>

Example - using array

<?php
$contextMenu = new \Kendo\UI\FileManagerContextMenu();
$command = 'value';
$contextMenu->addItem(array('command' => $command));
?>

Example - adding more than one FileManagerContextMenuItem

<?php
$contextMenu = new \Kendo\UI\FileManagerContextMenu();
$first  = new \Kendo\UI\FileManagerContextMenuItem();
$second = new \Kendo\UI\FileManagerContextMenuItem();
$contextMenu->addItem($first, $second);
?>

open

Fires before a sub menu or the ContextMenu gets opened. You can cancel this event to prevent opening the sub menu. ContextMenu Events.

Returns

\Kendo\UI\FileManagerContextMenu

Parameters

$value \Kendo\JavaScriptFunction

Example

<?php
$contextMenu = new \Kendo\UI\FileManagerContextMenu();
$contextMenu->open(new \Kendo\JavaScriptFunction('function() { }'));
?>

select

Fires when a menu item gets selected. ContextMenu Events.

Returns

\Kendo\UI\FileManagerContextMenu

Parameters

$value \Kendo\JavaScriptFunction

Example

<?php
$contextMenu = new \Kendo\UI\FileManagerContextMenu();
$contextMenu->select(new \Kendo\JavaScriptFunction('function() { }'));
?>
In this article
Not finding the help you need?