A calendar displays a 'flat' calendar and allows user to select a day from it.
The first day of the week is decided by the locale (actually the return value of the
getFirstDayOfWeek method in the
Since 5.0.3, you can control the first day of the week by the use of the session attribute and the library property. Please refer to The First Day of the Week for details.
<calendar id="cal" onChange="in.value = cal.value"/> <datebox id="in" onChange="cal.value = in.value"/>
Date Range Selector
Calendar Day Renderer
This is achieved by overriding the default renderer at the client to customize the appearance of days on ZK's Calendar. For example,
Show Week Number
Calendar supports to show a week number of the year.
- Available for ZK:
<calendar weekOfYear="true" />
You can control the 2DigitYearStart by the use of the library property. Please refer to org.zkoss.web.preferred.2DigitYearStart for details.
This component also supports
constraint like ZK Component Reference/Input/Datebox#Constraint
|onWeekClick||Denotes a user clicks upon a label of week of year. [ZK EE]|
- Inherited Supported Events: XulElement
|5.0.3||June, 2010||Calendar Day Renderer|
|5.0.3||July, 2010||An application can control the first day of the week by use of the session attribute and the library property. Please refer to The First Day of the Week for details.|
|5.0.4||August, 2010||Calendar supports moving to next/prev mon by mouse scrolling.|
|6.5.0||June, 2012||ZK-1175: Calendar support show week number|