\Kendo\UI\TaskBoardPreviewPane

A PHP class representing the previewPane setting of TaskBoard.

Methods

addButton

Adds one or more TaskBoardPreviewPaneButton to the TaskBoardPreviewPane.

Returns

\Kendo\UI\TaskBoardPreviewPane

Parameters

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

Example - using \Kendo\UI\TaskBoardPreviewPaneButton

<?php
$previewPane = new \Kendo\UI\TaskBoardPreviewPane();
$button = new \Kendo\UI\TaskBoardPreviewPaneButton();
$command = 'value';
$button->command($command);
$previewPane->addButton($button);
?>

Example - using array

<?php
$previewPane = new \Kendo\UI\TaskBoardPreviewPane();
$command = 'value';
$previewPane->addButton(array('command' => $command));
?>

Example - adding more than one TaskBoardPreviewPaneButton

<?php
$previewPane = new \Kendo\UI\TaskBoardPreviewPane();
$first  = new \Kendo\UI\TaskBoardPreviewPaneButton();
$second = new \Kendo\UI\TaskBoardPreviewPaneButton();
$previewPane->addButton($first, $second);
?>

headerTemplate

The template rendering of the header for the preview pane.

Returns

\Kendo\UI\TaskBoardPreviewPane

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

<?php
$previewPane = new \Kendo\UI\TaskBoardPreviewPane();
$previewPane->headerTemplate('value');
?>

Example - using \Kendo\JavaScriptFunction

<?php
$previewPane = new \Kendo\UI\TaskBoardPreviewPane();
$previewPane->headerTemplate(new \Kendo\JavaScriptFunction('function() { }'));
?>

template

The template rendering of the preview pane.

Returns

\Kendo\UI\TaskBoardPreviewPane

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

<?php
$previewPane = new \Kendo\UI\TaskBoardPreviewPane();
$previewPane->template('value');
?>

Example - using \Kendo\JavaScriptFunction

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