\Kendo\UI\GanttColumn
A PHP class representing the column setting of GanttColumns.
Methods
attributes
The HTML attributes of the table cell (
Returns
\Kendo\UI\GanttColumn
Parameters
$value ``
draggable
If set to true a draghandle will be rendered and the user could reorder the rows by dragging the row via the drag handle.
Returns
\Kendo\UI\GanttColumn
Parameters
$value boolean
Example
<?php
$column = new \Kendo\UI\GanttColumn();
$column->draggable(true);
?>
editable
Specifies whether this column can be edited by the user.
Returns
\Kendo\UI\GanttColumn
Parameters
$value boolean
Example
<?php
$column = new \Kendo\UI\GanttColumn();
$column->editable(true);
?>
editor
Provides a way to specify a custom editing UI for the column. To create the editing UI, use the container parameter.
Returns
\Kendo\UI\GanttColumn
Parameters
$value \Kendo\JavaScriptFunction
Example
<?php
$column = new \Kendo\UI\GanttColumn();
$column->editor(new \Kendo\JavaScriptFunction('function() { }'));
?>
expandable
If set to true, the column will show the icons that are used for expanding and collapsing child rows. By default, the "title" column of the Gantt is expandable.
Returns
\Kendo\UI\GanttColumn
Parameters
$value boolean
Example
<?php
$column = new \Kendo\UI\GanttColumn();
$column->expandable(true);
?>
field
The field to which the column is bound. The value of this field is displayed by the column during data binding.The field name should be a valid Javascript identifier and should contain only alphanumeric characters (or "$" or "_"), and may not start with a digit.
Returns
\Kendo\UI\GanttColumn
Parameters
$value string
Example
<?php
$column = new \Kendo\UI\GanttColumn();
$column->field('value');
?>
filterable
If set to true and if filtering is enabled for the entire Gantt, a filter menu will be displayed for this column. If set to false, the filter menu will not be displayed. By default, a filter menu is displayed for all columns when filtering is enabled through the filterable option. Can be set to a JavaScript object which represents the filter menu configuration.
Returns
\Kendo\UI\GanttColumn
Parameters
$value boolean|\Kendo\UI\GanttColumnFilterable|array
Example - using boolean
<?php
$column = new \Kendo\UI\GanttColumn();
$column->filterable(true);
?>
Example - using \Kendo\UI\GanttColumnFilterable
<?php
$column = new \Kendo\UI\GanttColumn();
$filterable = new \Kendo\UI\GanttColumnFilterable();
$ui = 'value';
$filterable->ui($ui);
$column->filterable($filterable);
?>
Example - using array
<?php
$column = new \Kendo\UI\GanttColumn();
$ui = 'value';
$column->filterable(array('ui' => $ui));
?>
format
The format that is applied to the value before it is displayed. Takes the form "{0:format}" where "format" is a standard number format,custom number format, standard date format or a custom date format.
Returns
\Kendo\UI\GanttColumn
Parameters
$value string
Example
<?php
$column = new \Kendo\UI\GanttColumn();
$column->format('value');
?>
headerAttributes
The HTML attributes of the table header cell (
Returns
\Kendo\UI\GanttColumn
Parameters
$value ``
headerTemplate
The template which renders the column header content. By default, the value of the title column option is displayed in the column header cell.
Returns
\Kendo\UI\GanttColumn
Parameters
$value string|\Kendo\JavaScriptFunction
Example - using string
<?php
$column = new \Kendo\UI\GanttColumn();
$column->headerTemplate('value');
?>
Example - using \Kendo\JavaScriptFunction
<?php
$column = new \Kendo\UI\GanttColumn();
$column->headerTemplate(new \Kendo\JavaScriptFunction('function() { }'));
?>
hidden
If set to true, the Gantt will not display the column. By default, all columns are displayed.
Returns
\Kendo\UI\GanttColumn
Parameters
$value boolean
Example
<?php
$column = new \Kendo\UI\GanttColumn();
$column->hidden(true);
?>
menu
If set to true, the Gantt will display the column in the column menu. By default, the column menu includes all data-bound columns, that is, the ones with a set field option.
Returns
\Kendo\UI\GanttColumn
Parameters
$value boolean
Example
<?php
$column = new \Kendo\UI\GanttColumn();
$column->menu(true);
?>
minScreenWidth
The pixel screen width below which the column will be hidden. The setting takes precedence over the hidden setting and the two cannot not be used at the same time.
Returns
\Kendo\UI\GanttColumn
Parameters
$value float
Example
<?php
$column = new \Kendo\UI\GanttColumn();
$column->minScreenWidth(1);
?>
sortable
If set to true the user could sort this column by clicking its header cells. By default sorting is disabled.
Returns
\Kendo\UI\GanttColumn
Parameters
$value boolean|\Kendo\UI\GanttColumnSortable|array
Example - using boolean
<?php
$column = new \Kendo\UI\GanttColumn();
$column->sortable(true);
?>
Example - using \Kendo\UI\GanttColumnSortable
<?php
$column = new \Kendo\UI\GanttColumn();
$sortable = new \Kendo\UI\GanttColumnSortable();
$compare = new \Kendo\JavaScriptFunction('function() { }');
$sortable->compare($compare);
$column->sortable($sortable);
?>
Example - using array
<?php
$column = new \Kendo\UI\GanttColumn();
$compare = new \Kendo\JavaScriptFunction('function() { }');
$column->sortable(array('compare' => $compare));
?>
template
The template which renders the column content. The Gantt renders table rows (
Returns
\Kendo\UI\GanttColumn
Parameters
$value string|\Kendo\JavaScriptFunction
Example - using string
<?php
$column = new \Kendo\UI\GanttColumn();
$column->template('value');
?>
Example - using \Kendo\JavaScriptFunction
<?php
$column = new \Kendo\UI\GanttColumn();
$column->template(new \Kendo\JavaScriptFunction('function() { }'));
?>
title
The text that is displayed in the column header cell. If not set the field is used.
Returns
\Kendo\UI\GanttColumn
Parameters
$value string
Example
<?php
$column = new \Kendo\UI\GanttColumn();
$column->title('value');
?>
width
The width of the column. Numeric values are treated as pixels.
Returns
\Kendo\UI\GanttColumn
Parameters
$value string|float
Example - using string
<?php
$column = new \Kendo\UI\GanttColumn();
$column->width('value');
?>
Example - using float
<?php
$column = new \Kendo\UI\GanttColumn();
$column->width(1);
?>