\Kendo\UI\MultiViewCalendar
A PHP wrapper for Kendo UI MultiViewCalendar.
Inherits from \Kendo\UI\Widget.
Usage
To use MultiViewCalendar in a PHP page instantiate a new instance, configure it via the available
configuration methods and output it by echo
-ing the result of the render method.
Using Kendo MultiViewCalendar
<?php
// Create a new instance of MultiViewCalendar and specify its id
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
// Configure it
$multiViewCalendar->allowReverse(true)
// Output it
echo $multiViewCalendar->render();
?>
Methods
allowReverse
Enables the user to select an end date that is before the start date. This option is available only when the selectable configuration is set to range.
Returns
\Kendo\UI\MultiViewCalendar
Parameters
$value boolean
Example
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$multiViewCalendar->allowReverse(true);
?>
centuryCellsFormat
Specifies the format of the century cells. "long" - The cells will display a decade range 2000-2009, 2010-2019. or "short" - The cells will display just the starting year of the decade 2000, 2010..
Returns
\Kendo\UI\MultiViewCalendar
Parameters
$value string
Example
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$multiViewCalendar->centuryCellsFormat('value');
?>
change
Fires when selection is changed. For additional information check the change event documentation.
Returns
\Kendo\UI\MultiViewCalendar
Parameters
$value string|\Kendo\JavaScriptFunction
Example - using string which defines a JavaScript function
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$multiViewCalendar->change('function(e) { }');
?>
Example - using string which defines a JavaScript name
<script>
function onChange(e) {
// handle the change event.
}
</script>
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$multiViewCalendar->change('onChange');
?>
Example - using \Kendo\JavaScriptFunction
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$multiViewCalendar->change(new \Kendo\JavaScriptFunction('function(e) { }'));
?>
culture
Specifies the culture info used by the widget.
Returns
\Kendo\UI\MultiViewCalendar
Parameters
$value string
Example
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$multiViewCalendar->culture('value');
?>
dates
Specifies a list of dates, which will be passed to the month template.
Returns
\Kendo\UI\MultiViewCalendar
Parameters
$value array
Example
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$multiViewCalendar->dates(array());
?>
depth
Specifies the navigation depth. The following settings are available for the depth value: "month" - Shows the days of the month.; "year" - Shows the months of the year.; "decade" - Shows the years of the decade. or "century" - Shows the decades from the century..
Returns
\Kendo\UI\MultiViewCalendar
Parameters
$value string
Example
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$multiViewCalendar->depth('value');
?>
footer
The template which renders the footer. If false, the footer will not be rendered.
Returns
\Kendo\UI\MultiViewCalendar
Parameters
$value string|\Kendo\JavaScriptFunction
Example - using string
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$multiViewCalendar->footer('value');
?>
Example - using \Kendo\JavaScriptFunction
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$multiViewCalendar->footer(new \Kendo\JavaScriptFunction('function() { }'));
?>
format
Specifies the format, which is used to parse value set with value() method.
Returns
\Kendo\UI\MultiViewCalendar
Parameters
$value string
Example
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$multiViewCalendar->format('value');
?>
max
Specifies the maximum date, which the multiViewCalendar can show.
Returns
\Kendo\UI\MultiViewCalendar
Parameters
$value date
Example
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$multiViewCalendar->max(new date());
?>
messages
Allows localization of the strings that are used in the widget.
Returns
\Kendo\UI\MultiViewCalendar
Parameters
$value \Kendo\UI\MultiViewCalendarMessages|array
Example - using \Kendo\UI\MultiViewCalendarMessages
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$messages = new \Kendo\UI\MultiViewCalendarMessages();
$weekColumnHeader = 'value';
$messages->weekColumnHeader($weekColumnHeader);
$multiViewCalendar->messages($messages);
?>
Example - using array
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$weekColumnHeader = 'value';
$multiViewCalendar->messages(array('weekColumnHeader' => $weekColumnHeader));
?>
min
Specifies the minimum date, which the multiViewCalendar can show.
Returns
\Kendo\UI\MultiViewCalendar
Parameters
$value date
Example
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$multiViewCalendar->min(new date());
?>
month
Templates for the cells rendered in "month" view.
Returns
\Kendo\UI\MultiViewCalendar
Parameters
$value \Kendo\UI\MultiViewCalendarMonth|array
Example - using \Kendo\UI\MultiViewCalendarMonth
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$month = new \Kendo\UI\MultiViewCalendarMonth();
$content = 'value';
$month->content($content);
$multiViewCalendar->month($month);
?>
Example - using array
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$content = 'value';
$multiViewCalendar->month(array('content' => $content));
?>
navigate
Fires when multiViewCalendar navigates. For additional information check the navigate event documentation.
Returns
\Kendo\UI\MultiViewCalendar
Parameters
$value string|\Kendo\JavaScriptFunction
Example - using string which defines a JavaScript function
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$multiViewCalendar->navigate('function(e) { }');
?>
Example - using string which defines a JavaScript name
<script>
function onNavigate(e) {
// handle the navigate event.
}
</script>
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$multiViewCalendar->navigate('onNavigate');
?>
Example - using \Kendo\JavaScriptFunction
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$multiViewCalendar->navigate(new \Kendo\JavaScriptFunction('function(e) { }'));
?>
range
Configures the Kendo UI MultiViewCalendar range settings.
Returns
\Kendo\UI\MultiViewCalendar
Parameters
$value \Kendo\UI\MultiViewCalendarRange|array
Example - using \Kendo\UI\MultiViewCalendarRange
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$range = new \Kendo\UI\MultiViewCalendarRange();
$end = new date();
$range->end($end);
$multiViewCalendar->range($range);
?>
Example - using array
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$end = new date();
$multiViewCalendar->range(array('end' => $end));
?>
selectDates
Specifies which dates to be selected when the multiViewCalendar is initialized.
Returns
\Kendo\UI\MultiViewCalendar
Parameters
$value array
Example
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$multiViewCalendar->selectDates(array());
?>
selectable
By default user is able to select a single date. The property can also be set to "multiple" or "range". More information about multiple selection can be found in the Selection article.
Returns
\Kendo\UI\MultiViewCalendar
Parameters
$value string
Example
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$multiViewCalendar->selectable('value');
?>
showOtherMonthDays
When this configuration is enabled, the MultiViewCalendar will render days from the previous and next months in the current views.
Returns
\Kendo\UI\MultiViewCalendar
Parameters
$value boolean
Example
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$multiViewCalendar->showOtherMonthDays(true);
?>
showViewHeader
If set to true will render a header for every view.
Returns
\Kendo\UI\MultiViewCalendar
Parameters
$value boolean
Example
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$multiViewCalendar->showViewHeader(true);
?>
start
Specifies the start view. The following settings are available for the start value: "month" - Shows the days of the month.; "year" - Shows the months of the year.; "decade" - Shows the years of the decade. or "century" - Shows the decades from the century..
Returns
\Kendo\UI\MultiViewCalendar
Parameters
$value string
Example
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$multiViewCalendar->start('value');
?>
value
Specifies the selected date.
Returns
\Kendo\UI\MultiViewCalendar
Parameters
$value date
Example
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$multiViewCalendar->value(new date());
?>
views
This property controls how many months to be shown at same time. By default it shows two months.
Returns
\Kendo\UI\MultiViewCalendar
Parameters
$value float
Example
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$multiViewCalendar->views(1);
?>
weekNumber
If set to true a week of the year will be shown on the left side of the multiViewCalendar.
Returns
\Kendo\UI\MultiViewCalendar
Parameters
$value boolean
Example
<?php
$multiViewCalendar = new \Kendo\UI\MultiViewCalendar('MultiViewCalendar');
$multiViewCalendar->weekNumber(true);
?>