\Kendo\UI\SchedulerToolbarItemItem

A PHP class representing the item setting of SchedulerToolbarItemItems.

Methods

desktop

Will specify all tools rendered in the Scheduler ToolBar with its non-adaptive rendering. If not explicitly set here, the component will render its built-in tools in the following order: [ "pdf", [ "today", "previous", "next" ], "current", { type: "spacer" }, "search", "views" ]. Note that if more than one view is defined, the last default tool is views, otherwise views is substituted by the refresh tool. Tools grouped in an array would produce a ButtonGroup in the ToolBar. Note that the pdf and search tools should be explicitly enabled in order to be visible.By using the items.desktop field, you can specify any kind and number of custom tools that will be rendered in the ToolBar. You should define the custom tools via the ToolBar items API.

Returns

\Kendo\UI\SchedulerToolbarItemItem

Parameters

$value array

Example

<?php
$item = new \Kendo\UI\SchedulerToolbarItemItem();
$item->desktop(array());
?>

mobile

Will specify all tools rendered in the Scheduler ToolBar with its adaptive rendering. By default, there are two ToolBars rendered in the Scheduler in that mode: main (or upper) ToolBar contains the following built-in tools: [ [ "pdfMobile", "calendar", "create" ], { type: "spacer" }, "search", "viewsMobile" ]. Note that if more than one view is defined, the last default tool is viewsMobile, otherwise viewsMobile is substituted by the refresh tool. Tools grouped in an array would produce a ButtonGroup in the ToolBar. Note that the pdfMobile and search tools should be explicitly enabled in order to be visible; or navigation (or lower) ToolBar contains the following built-in tools: [ "previousMobile", { type: "spacer" }, "currentMobile", { type: "spacer" }, "nextMobile" ];. By using the items.mobile field, you can specify any kind and number of custom tools for the above two ToolBars. You should define the custom tools via the ToolBar items API.

Returns

\Kendo\UI\SchedulerToolbarItemItem

Parameters

$value \Kendo\UI\SchedulerToolbarItemItemMobile|array

Example - using \Kendo\UI\SchedulerToolbarItemItemMobile

<?php
$item = new \Kendo\UI\SchedulerToolbarItemItem();
$mobile = new \Kendo\UI\SchedulerToolbarItemItemMobile();
$main = new ();
$mobile->main($main);
$item->mobile($mobile);
?>

Example - using array

<?php
$item = new \Kendo\UI\SchedulerToolbarItemItem();
$main = new ();
$item->mobile(array('main' => $main));
?>
In this article
Not finding the help you need?