Extensions to the
Datepick
plugin.- Source:
Members
(inner) themeRollerRenderer
ThemeRoller template for generating a datepicker.
Use it with the
renderer
option.
- Source:
Example
renderer: $.datepick.themeRollerRenderer
(inner) themeRollerWeekOfYearRenderer
ThemeRoller template for generating a datepicker showing week of year.
Use it with the
renderer
option.
- Source:
Example
renderer: $.datepick.themeRollerWeekOfYearRenderer
(inner) weekOfYearRenderer
Template for generating a datepicker showing week of year.
Use it with the
renderer
option.
- Source:
Example
renderer: $.datepick.weekOfYearRenderer
Methods
(inner) changeFirstDay(picker, inst)
Change the first day of the week by clicking on the day header.
Use it with the
onShow
option.
Parameters:
Name | Type | Description |
---|---|---|
picker |
jQuery | The completed datepicker division. |
inst |
object | The current instance settings. |
- Source:
Example
onShow: $.datepick.changeFirstDay
(inner) highlightWeek(picker, inst)
Highlight the entire week when hovering over it.
Use it with the
onShow
option.
Parameters:
Name | Type | Description |
---|---|---|
picker |
jQuery | The completed datepicker division. |
inst |
object | The current instance settings. |
- Source:
Example
onShow: $.datepick.highlightWeek
(inner) hoverCallback(onHover)
Add a callback when hovering over dates.
Use it with the
onShow
option.
Parameters:
Name | Type | Description |
---|---|---|
onHover |
DatepickOnHover | The callback when hovering, it receives the current date and
a flag indicating selectability as parameters on entry,
and no parameters on exit, this refers to the target input or division. |
- Source:
Example
onShow: $.datepick.hoverCallback(handleHover)
(inner) monthNavigation(picker, inst)
Allow easier navigation by month/year.
Use it with the
onShow
option.
Parameters:
Name | Type | Description |
---|---|---|
picker |
jQuery | The completed datepicker division. |
inst |
object | The current instance settings. |
- Source:
Example
onShow: $.datepick.monthNavigation
(inner) monthOnly(picker, inst)
Select a month only instead of a single day.
Use it with the
onShow
option.
Parameters:
Name | Type | Description |
---|---|---|
picker |
jQuery | The completed datepicker division. |
inst |
object | The current instance settings. |
- Source:
Example
onShow: $.datepick.monthOnly
(inner) noWeekends(date) → {object}
Don't allow weekends to be selected.
Use it with the
onDate
option.
Parameters:
Name | Type | Description |
---|---|---|
date |
Date | The current date. |
- Source:
Returns:
Information about this date.
- Type
- object
Example
onDate: $.datepick.noWeekends
(inner) selectMonth(picker, inst)
Select an entire month when clicking on the week header.
Use it with the
onShow
option.
Use in conjunction with weekOfYearRenderer
or
themeRollerWeekOfYearRenderer
.
Parameters:
Name | Type | Description |
---|---|---|
picker |
jQuery | The completed datepicker division. |
inst |
object | The current instance settings. |
- Source:
Example
onShow: $.datepick.selectMonth
(inner) selectWeek(picker, inst)
Select an entire week when clicking on a week number.
Use it with the
onShow
option.
Use in conjunction with weekOfYearRenderer
or
themeRollerWeekOfYearRenderer
.
Parameters:
Name | Type | Description |
---|---|---|
picker |
jQuery | The completed datepicker division. |
inst |
object | The current instance settings. |
- Source:
Example
onShow: $.datepick.selectWeek
(inner) showStatus(picker, inst)
Show a status bar with messages.
Use it with the
onShow
option.
Parameters:
Name | Type | Description |
---|---|---|
picker |
jQuery | The completed datepicker division. |
inst |
object | The current instance settings. |
- Source:
Example
onShow: $.datepick.showStatus