Initializing View Attributes"

From Documentation
m
m
Line 1: Line 1:
 
{{ZKCalendarEssentialsPageHeader}}
 
{{ZKCalendarEssentialsPageHeader}}
  
init
+
Here is ''Calendar's'' attribute specification table:
 +
{|border="1"
 +
|-
 +
!Attribute||Usage||Default Value
 +
|-
 +
||readonly
 +
||Sets whether it is readonly
 +
||false
 +
|-
 +
||firstDayOfWeek
 +
||Sets what the first day of the week is; e.g., <code>SUNDAY</code> in the U.S., <code>MONDAY</code> in France
 +
||system default
 +
|-
 +
||currentDate
 +
||Sets the current date
 +
||today (depend on which timezone the system is using)
 +
|-
 +
||days
 +
||Sets the days, that is, how many column should be displayed on the default mold
 +
||7 (i.e. one week)
 +
|-
 +
||dateFormatter
 +
||Sets the date formatter. In fact, there are five places in the calendar must have different date display
 +
||<javadoc>org.zkoss.calendar.impl.SimpleDateFormatter</javadoc>
 +
|-
 +
||model
 +
||Sets the calendar model
 +
||null
 +
|-
 +
||mold
 +
||Sets the calendar mold
 +
||default
 +
|}
 +
 
  
 
{{ZKCalendarEssentialsPageFooter}}
 
{{ZKCalendarEssentialsPageFooter}}

Revision as of 07:52, 11 March 2010


Initializing View Attributes



Here is Calendar's attribute specification table:

Attribute Usage Default Value
readonly Sets whether it is readonly false
firstDayOfWeek Sets what the first day of the week is; e.g., SUNDAY in the U.S., MONDAY in France system default
currentDate Sets the current date today (depend on which timezone the system is using)
days Sets the days, that is, how many column should be displayed on the default mold 7 (i.e. one week)
dateFormatter Sets the date formatter. In fact, there are five places in the calendar must have different date display SimpleDateFormatter
model Sets the calendar model null
mold Sets the calendar mold default


The example project is at Github


Last Update : 2010/03/11

Copyright © Potix Corporation. This article is licensed under GNU Free Documentation License.