\Kendo\UI\FileManagerToolbar

A PHP class representing the toolbar setting of FileManager.

Methods

addItem

Adds one or more FileManagerToolbarItem to the FileManagerToolbar.

Returns

\Kendo\UI\FileManagerToolbar

Parameters

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

Example - using \Kendo\UI\FileManagerToolbarItem

<?php
$toolbar = new \Kendo\UI\FileManagerToolbar();
$item = new \Kendo\UI\FileManagerToolbarItem();
$command = 'value';
$item->command($command);
$toolbar->addItem($item);
?>

Example - using array

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

Example - adding more than one FileManagerToolbarItem

<?php
$toolbar = new \Kendo\UI\FileManagerToolbar();
$first  = new \Kendo\UI\FileManagerToolbarItem();
$second = new \Kendo\UI\FileManagerToolbarItem();
$toolbar->addItem($first, $second);
?>
In this article
Not finding the help you need?