-
render#
Returns:
HTML/Javascript code
Example:
<?php
Zino_Loader::register("Calendar", "calendar")->render();
// or
$calendar = Zino_Loader::register("Calendar", "calendar");
$calendar->render();
?>
-
setDateFormat#
Parameters:
$value
String
Returns:
Zino_Calendar instance
Example:
<?php
$calendar = Zino_Loader::register("Calendar", "calendar");
$calendar->setDateFormat("Y-m-d");
?>
-
setDayNames#
Returns:
Zino_Calendar instance
Example:
<?php
$calendar = Zino_Loader::register("Calendar", "calendar");
$calendar->setDayNames(array("Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"));
?>
-
setDayNamesFull#
Returns:
Zino_Calendar instance
Example:
<?php
$calendar = Zino_Loader::register("Calendar", "calendar");
$calendar->setDayNamesFull(array(
"Неделя",
"Понеделник",
"Вторник",
"Сряда",
"Четвъртък",
"Петък",
"Събота"
));
?>
-
setDisablePast#
Parameters:
$value
Boolean
Returns:
Zino_Calendar instance
Example:
<?php
$calendar = Zino_Loader::register("Calendar", "calendar");
$calendar->setDisablePast(true);
?>
-
setInline#
Parameters:
$value
Boolean
Returns:
Zino_Calendar instance
Example:
<?php
$calendar = Zino_Loader::register("Calendar", "calendar");
$calendar->setInline(true);
?>
-
setMinDate#
Parameters:
$value
String
Returns:
Zino_Calendar instance
Example:
<?php
$calendar = Zino_Loader::register("Calendar", "calendar");
$calendar->setMinDate("2013-08-01");
?>
-
setMonth#
Parameters:
$value
Number
Returns:
Zino_Calendar instance
Example:
<?php
$calendar = Zino_Loader::register("Calendar", "calendar");
$calendar->setMonth(9);
?>
-
setMonthNamesFull#
Returns:
Zino_Calendar instance
Example:
<?php
$calendar = Zino_Loader::register("Calendar", "calendar");
$calendar->setMonthNamesFull(array(
"Януари",
"Февруари",
"Март",
"Април",
"Май",
"Юни",
"Юли",
"Август",
"Септември",
"Октомври",
"Ноември",
"Декември"
));
?>
-
setMonths#
Parameters:
$value
Number
Returns:
Zino_Calendar instance
Example:
<?php
$calendar = Zino_Loader::register("Calendar", "calendar");
$calendar->setMonths(3);
?>
-
setPosition#
Parameters:
$value
String
Returns:
Zino_Calendar instance
Example:
<?php
$calendar = Zino_Loader::register("Calendar", "calendar");
$calendar->setPosition("bottom");
?>
-
setSelectOtherMonths#
Parameters:
$value
Boolean
Returns:
Zino_Calendar instance
Example:
<?php
$calendar = Zino_Loader::register("Calendar", "calendar");
$calendar->setSelectOtherMonths(true);
?>
-
setShowNavigation#
Parameters:
$value
Boolean
Returns:
Zino_Calendar instance
Example:
<?php
$calendar = Zino_Loader::register("Calendar", "calendar");
$calendar->setShowNavigation(true);
?>
-
setShowOtherMonths#
Parameters:
$value
Boolean
Returns:
Zino_Calendar instance
Example:
<?php
$calendar = Zino_Loader::register("Calendar", "calendar");
$calendar->setShowOtherMonths(true);
?>
-
setStartDay#
Parameters:
$value
Number
Returns:
Zino_Calendar instance
Example:
<?php
$calendar = Zino_Loader::register("Calendar", "calendar");
$calendar->setStartDay(4);
?>
-
setWeekNumbers#
Parameters:
$value
Boolean
Returns:
Zino_Calendar instance
Example:
<?php
$calendar = Zino_Loader::register("Calendar", "calendar");
$calendar->setWeekNumbers(true);
?>
-
setYear#
Parameters:
$value
Number
Returns:
Zino_Calendar instance
Example:
<?php
$calendar = Zino_Loader::register("Calendar", "calendar");
$calendar->setYear(2014);
?>
-
on#
Fires when a datepicker attempts to close. If the onBeforeClose event handler (callback function) returns false, the close will be prevented. this refer to datepicker instance.
Returns:
Zino_Calendar instance
Example:
<?php
$calendar = Zino_Loader::register("Calendar", "calendar");
$calendar->on("beforeClose", "function () {}");
?>
-
on#
Fires when a datepicker attempts to open. If the onBeforeOpen event handler (callback function) returns false, the open will be prevented. this refer to datepicker instance.
Returns:
Zino_Calendar instance
Example:
<?php
$calendar = Zino_Loader::register("Calendar", "calendar");
$calendar->on("beforeOpen", "function () {}");
?>
-
on#
Fires when the datepicker is closed. this refer to datepicker instance.
Returns:
Zino_Calendar instance
Example:
<?php
$calendar = Zino_Loader::register("Calendar", "calendar");
$calendar->on("close", "function () {}");
?>
-
on#
The function takes a date as a parameter and must return an array with [0] equal to true/false indicating whether or not this date is selectable, [1] equal to a CSS class name(s) or "" for the default presentation. It is called for each day in the datepic
Returns:
Zino_Calendar instance
Example:
<?php
$calendar = Zino_Loader::register("Calendar", "calendar");
$calendar->on("onBeforeShowDay", "function (date) {}");
?>
-
on#
element - HTMLElement to which the datepicker is attached. Fires when datepicker is opened. this refer to datepicker instance.
Returns:
Zino_Calendar instance
Example:
<?php
$calendar = Zino_Loader::register("Calendar", "calendar");
$calendar->on("open", "function (element) {}");
?>
-
on#
element - HTMLElement to which the datepicker is attached selectedDate - selected date in the specified format date - selected date in milliseconds cell - HTMLElement that you click on Allows you to define your own event when the datepicker is selected. t
Returns:
Zino_Calendar instance
Example:
<?php
$calendar = Zino_Loader::register("Calendar", "calendar");
$calendar->on("select", "function (element, selectedDate, date, cell) {}");
?>
-
setId#
Parameters:
$value
String
Returns:
Zino_Calendar instance
Example:
<?php
$calendar = Zino_Loader::register("Calendar", "calendar");
$calendar->setId("new_id");
?>
-
setDomReady#
Parameters:
$value
Boolean
Returns:
Zino_Calendar instance
Example:
<?php
$calendar = Zino_Loader::register("Calendar", "calendar");
$calendar->setDomReady(false);
?>
-
setScript#
Parameters:
$value
Boolean
Returns:
Zino_Calendar instance
Example:
<?php
$calendar = Zino_Loader::register("Calendar", "calendar");
$calendar->setScript(false);
?>