\Kendo\UI\PDFViewerToolbar

A PHP class representing the toolbar setting of PDFViewer.

Methods

addItem

Adds one or more PDFViewerToolbarItem to the PDFViewerToolbar.

Returns

\Kendo\UI\PDFViewerToolbar

Parameters

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

Example - using \Kendo\UI\PDFViewerToolbarItem

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

Example - using array

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

Example - adding more than one PDFViewerToolbarItem

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