\Kendo\UI\GanttView

A PHP class representing the view setting of GanttViews.

Methods

date

If set to some date and it is between the range start and range end of the selected view, the timeline of the currently selected view is scrolled to start from this date.Overrides the date option of the gantt.

Returns

\Kendo\UI\GanttView

Parameters

$value date

Example

<?php
$view = new \Kendo\UI\GanttView();
$view->date(new date());
?>

dayHeaderTemplate

The template used to render the day slots in "day" and "week" views.

Returns

\Kendo\UI\GanttView

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

<?php
$view = new \Kendo\UI\GanttView();
$view->dayHeaderTemplate('value');
?>

Example - using \Kendo\JavaScriptFunction

<?php
$view = new \Kendo\UI\GanttView();
$view->dayHeaderTemplate(new \Kendo\JavaScriptFunction('function() { }'));
?>

monthHeaderTemplate

The template used to render the month slots in "month" and "year" views.

Returns

\Kendo\UI\GanttView

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

<?php
$view = new \Kendo\UI\GanttView();
$view->monthHeaderTemplate('value');
?>

Example - using \Kendo\JavaScriptFunction

<?php
$view = new \Kendo\UI\GanttView();
$view->monthHeaderTemplate(new \Kendo\JavaScriptFunction('function() { }'));
?>

range

Configures the view range settings.

Returns

\Kendo\UI\GanttView

Parameters

$value \Kendo\UI\GanttViewRange|array

Example - using \Kendo\UI\GanttViewRange

<?php
$view = new \Kendo\UI\GanttView();
$range = new \Kendo\UI\GanttViewRange();
$end = new date();
$range->end($end);
$view->range($range);
?>

Example - using array

<?php
$view = new \Kendo\UI\GanttView();
$end = new date();
$view->range(array('end' => $end));
?>

resizeTooltipFormat

The format used to display the start and end dates in the resize tooltip.

Returns

\Kendo\UI\GanttView

Parameters

$value string

Example

<?php
$view = new \Kendo\UI\GanttView();
$view->resizeTooltipFormat('value');
?>

selected

If set to true the view will be initially selected by the Gantt widget. The default selected view is "day".

Returns

\Kendo\UI\GanttView

Parameters

$value boolean

Example

<?php
$view = new \Kendo\UI\GanttView();
$view->selected(true);
?>

slotSize

The size of the time slot headers. Values are treated as pixels.

Returns

\Kendo\UI\GanttView

Parameters

$value float|string

Example - using float

<?php
$view = new \Kendo\UI\GanttView();
$view->slotSize(1);
?>

Example - using string

<?php
$view = new \Kendo\UI\GanttView();
$view->slotSize('value');
?>

timeHeaderTemplate

The template used to render the time slots in "day" view

Returns

\Kendo\UI\GanttView

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

<?php
$view = new \Kendo\UI\GanttView();
$view->timeHeaderTemplate('value');
?>

Example - using \Kendo\JavaScriptFunction

<?php
$view = new \Kendo\UI\GanttView();
$view->timeHeaderTemplate(new \Kendo\JavaScriptFunction('function() { }'));
?>

type

The view type. Supported types are "day", "week", "month" and "year".

Returns

\Kendo\UI\GanttView

Parameters

$value string

Example

<?php
$view = new \Kendo\UI\GanttView();
$view->type('value');
?>

weekHeaderTemplate

The template used to render the week slots in "week" and "month" views.

Returns

\Kendo\UI\GanttView

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

<?php
$view = new \Kendo\UI\GanttView();
$view->weekHeaderTemplate('value');
?>

Example - using \Kendo\JavaScriptFunction

<?php
$view = new \Kendo\UI\GanttView();
$view->weekHeaderTemplate(new \Kendo\JavaScriptFunction('function() { }'));
?>

yearHeaderTemplate

The template used to render the year slots in "year" view.

Returns

\Kendo\UI\GanttView

Parameters

$value string|\Kendo\JavaScriptFunction

Example - using string

<?php
$view = new \Kendo\UI\GanttView();
$view->yearHeaderTemplate('value');
?>

Example - using \Kendo\JavaScriptFunction

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