yearView

Calendar Properties for more information on user selection editing.

Specifies whether the Calendar should be displayed in “year view” or “month view”. Year view displays one or two years (depending on doubleCalendar setting) and allows selections at the month level. Month view displays one or two months (depending on doubleCalendar setting) and allows selections at the week or day level (depending on daySelection setting).

Type

Boolean

true: display year view
false: disable year view (default)

Example

Calendar1.yearView = true;

Either syntax below can be used in component script:

yearView               // unqualified
Component1.yearView    // qualified

For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required.