\Kendo\UI\TaskBoardResource

A PHP class representing the resource setting of TaskBoardResources.

Methods

dataColorField

The field of the resource data item which contains the resource color.

Returns

\Kendo\UI\TaskBoardResource

Parameters

$value string

Example

<?php
$resource = new \Kendo\UI\TaskBoardResource();
$resource->dataColorField('value');
?>

dataSource

Sets the data source of the widget.

Returns

\Kendo\UI\TaskBoardResource

Parameters

$value \Kendo\Data\DataSource|array

Example - using \Kendo\Data\DataSource

<?php
$resource = new \Kendo\UI\TaskBoardResource();
$dataSource = new \Kendo\Data\DataSource();
$resource->dataSource($dataSource);
?>

Example - using array

<?php
$resource = new \Kendo\UI\TaskBoardResource();
$schema = new \Kendo\Data\DataSourceSchema();
$resource->dataSource(array('schema' => $schema));
?>

dataTextField

The field of the resource data item which represents the resource text.

Returns

\Kendo\UI\TaskBoardResource

Parameters

$value string

Example

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

dataValueField

The field of the resource data item which represents the resource value. The resource value is used to link a TaskBoard event with a resource.

Returns

\Kendo\UI\TaskBoardResource

Parameters

$value string

Example

<?php
$resource = new \Kendo\UI\TaskBoardResource();
$resource->dataValueField('value');
?>

field

The field of the TaskBoard event which contains the resource id.

Returns

\Kendo\UI\TaskBoardResource

Parameters

$value string

Example

<?php
$resource = new \Kendo\UI\TaskBoardResource();
$resource->field('value');
?>

multiple

If set to true the TaskBoard event can be assigned multiple instances of the resource. The TaskBoard event field specified via the field option will contain an array of resources. By default only one resource instance can be assigned to an event.

Returns

\Kendo\UI\TaskBoardResource

Parameters

$value boolean

Example

<?php
$resource = new \Kendo\UI\TaskBoardResource();
$resource->multiple(true);
?>

name

The name of the resource used to distinguish resource. If not set the value of the field option is used.

Returns

\Kendo\UI\TaskBoardResource

Parameters

$value string

Example

<?php
$resource = new \Kendo\UI\TaskBoardResource();
$resource->name('value');
?>

title

The user friendly title of the resource displayed in the TaskBoard edit form. If not set the value of the field option is used.

Returns

\Kendo\UI\TaskBoardResource

Parameters

$value string

Example

<?php
$resource = new \Kendo\UI\TaskBoardResource();
$resource->title('value');
?>

valuePrimitive

Set to false if the TaskBoard event field specified via the field option contains a resource data item. By default the TaskBoard expects that field to contain a primitive value (string, number) which corresponds to the "value" of the resource (specified via dataValueField).

Returns

\Kendo\UI\TaskBoardResource

Parameters

$value boolean

Example

<?php
$resource = new \Kendo\UI\TaskBoardResource();
$resource->valuePrimitive(true);
?>
In this article
Not finding the help you need?