\Kendo\UI\GanttAssignments
A PHP class representing the assignments setting of Gantt.
Methods
dataResourceIdField
The field of the assignment data item which represents the resource id.
Returns
\Kendo\UI\GanttAssignments
Parameters
$value string
Example
<?php
$assignments = new \Kendo\UI\GanttAssignments();
$assignments->dataResourceIdField('value');
?>
dataSource
Sets the data source of the widget.
Returns
\Kendo\UI\GanttAssignments
Parameters
$value \Kendo\Data\DataSource|array
Example - using \Kendo\Data\DataSource
<?php
$assignments = new \Kendo\UI\GanttAssignments();
$dataSource = new \Kendo\Data\DataSource();
$assignments->dataSource($dataSource);
?>
Example - using array
<?php
$assignments = new \Kendo\UI\GanttAssignments();
$schema = new \Kendo\Data\DataSourceSchema();
$assignments->dataSource(array('schema' => $schema));
?>
dataTaskIdField
The field of the assignment data item which represents the task id.
Returns
\Kendo\UI\GanttAssignments
Parameters
$value string
Example
<?php
$assignments = new \Kendo\UI\GanttAssignments();
$assignments->dataTaskIdField('value');
?>
dataValueField
The field of the assignment data item which represents the amount of the assigned resource.
Returns
\Kendo\UI\GanttAssignments
Parameters
$value string
Example
<?php
$assignments = new \Kendo\UI\GanttAssignments();
$assignments->dataValueField('value');
?>