\Kendo\UI\TaskBoardColumnSettings

A PHP class representing the columnSettings setting of TaskBoard.

Methods

addButton

Adds one or more TaskBoardColumnSettingsButton to the TaskBoardColumnSettings.

Returns

\Kendo\UI\TaskBoardColumnSettings

Parameters

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

Example - using \Kendo\UI\TaskBoardColumnSettingsButton

<?php
$columnSettings = new \Kendo\UI\TaskBoardColumnSettings();
$button = new \Kendo\UI\TaskBoardColumnSettingsButton();
$command = 'value';
$button->command($command);
$columnSettings->addButton($button);
?>

Example - using array

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

Example - adding more than one TaskBoardColumnSettingsButton

<?php
$columnSettings = new \Kendo\UI\TaskBoardColumnSettings();
$first  = new \Kendo\UI\TaskBoardColumnSettingsButton();
$second = new \Kendo\UI\TaskBoardColumnSettingsButton();
$columnSettings->addButton($first, $second);
?>

dataOrderField

The field used to order columns (number based). Automatically adds sorting to the columns DataSource instance.If not set, columns will be rendered in the order they are fetched. And ordering will not be applied to the DataSource and respectively, not synced with the remote data source.

Returns

\Kendo\UI\TaskBoardColumnSettings

Parameters

$value string

Example

<?php
$columnSettings = new \Kendo\UI\TaskBoardColumnSettings();
$columnSettings->dataOrderField('value');
?>

dataStatusField

The field of the data item that provides the status of the column. Mapped with the status of the cards.

Returns

\Kendo\UI\TaskBoardColumnSettings

Parameters

$value string

Example

<?php
$columnSettings = new \Kendo\UI\TaskBoardColumnSettings();
$columnSettings->dataStatusField('value');
?>

dataTextField

The text field of the column.

Returns

\Kendo\UI\TaskBoardColumnSettings

Parameters

$value string

Example

<?php
$columnSettings = new \Kendo\UI\TaskBoardColumnSettings();
$columnSettings->dataTextField('value');
?>

template

Controls the rendering of the column header. In the template context the buttons field provides the HTML for the buttons of the column.

Returns

\Kendo\UI\TaskBoardColumnSettings

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

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

Example - using \Kendo\JavaScriptFunction

<?php
$columnSettings = new \Kendo\UI\TaskBoardColumnSettings();
$columnSettings->template(new \Kendo\JavaScriptFunction('function() { }'));
?>

width

Configures the width of the columns

Returns

\Kendo\UI\TaskBoardColumnSettings

Parameters

$value string|float

Example - using string

<?php
$columnSettings = new \Kendo\UI\TaskBoardColumnSettings();
$columnSettings->width('value');
?>

Example - using float

<?php
$columnSettings = new \Kendo\UI\TaskBoardColumnSettings();
$columnSettings->width(1);
?>
In this article
Not finding the help you need?