Initializing View Attributes"
Zkwikiadmin (talk | contribs) m |
Tmillsclare (talk | contribs) |
||
Line 40: | Line 40: | ||
===An Example: The Mold Attribute=== | ===An Example: The Mold Attribute=== | ||
− | The mold attribute dictates what view the user will see. There are two molds | + | The mold attribute dictates what view the user will see. There are two molds, the default and |
====The Default Mold ==== | ====The Default Mold ==== | ||
Line 47: | Line 47: | ||
[[File:ZKCalEss_Default_mold.jpg]] | [[File:ZKCalEss_Default_mold.jpg]] | ||
+ | |||
+ | |||
+ | ====The Month Mold==== | ||
+ | |||
+ | In the month mold the date time event has no background color, the text is colored and the daylong event has a background color with white text. When utilising the month mold, each row represents one week. | ||
+ | |||
+ | |||
{{ZKCalendarEssentialsPageFooter}} | {{ZKCalendarEssentialsPageFooter}} |
Revision as of 01:52, 12 March 2010
ZK Calendar has several attributes which control how the user views the Calendar. The following table details ZK Calendar’s attributes and their usage.
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 best way to understand how attributes work is to follow an example. In this example we will concentrate on the "mold" attribute.
An Example: The Mold Attribute
The mold attribute dictates what view the user will see. There are two molds, the default and
The Default Mold
In the default mold the content of the calendar is separated into two parts. The main component area is where date time events are displayed and the top of the Calendar component is used to display the daylong event.
The Month Mold
In the month mold the date time event has no background color, the text is colored and the daylong event has a background color with white text. When utilising the month mold, each row represents one week.
The example project is at Github