YearView
This is normally used as a mode of a Calendar (as seen in the live demo below) but may be used standalone as a regular Widget.
As a standalone widget, it will lack the capabilities of the Calendar class, such as keyboard-based event to event navigation and drag/drop features. As seen in this demo:
A Panel which displays a year's worth of months with days which have events highlighted.
Useful configs
| Config | Description |
|---|---|
| year | The year to display |
| dayCellRenderer | Custom renderer for day cells |
| showEvents | How to indicate event presence (heatmap, dots, count) |
| sixWeeks | Show six week rows per month or fit to content |
See also
Configs
Configs are options you supply in a configuration object when creating an instance of this class-
A date which specifies the year to display. All types of calendar view have a
dateconfig which they use to set their visible date range according to their configuration and type. -
The class name to add to calendar cells which are in the previous or next month.
-
How to indicate the presence of events for a date. The default is
heatmapwhich adds classes depending on how many events intersect the date.Values may be:false- Do not show events in cells.true- Show a heatmap of colours the intensity of which indicates event load.'heatmap'- Show a heatmap of colours the intensity of which indicates event load.'count'- Show a themeable badge containing the event count for a date.'dots'- Show small event-coloured bullets up to a maximum ofeventDots.maxto indicate event presence. to indicate event presence.
Has a corresponding runtime showEvents property.
-
By default, all months show six week rows. Pass
falseto only render as many rows as needed. -
The year to display
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of YearView class, or subclass thereof.
-
Returns the resource associated with this year view when used inside a ResourceView
-
How to indicate the presence of events for a date. The default is
heatmapwhich adds classes depending on how many events intersect the date.Values may be:false- Do not show events in cells.true- Show a heatmap of colours the intensity of which indicates event load.'heatmap'- Show a heatmap of colours the intensity of which indicates event load.'count'- Show a themeable badge containing the event count for a date.'dots'- Show small event-coloured bullets up to a maximum ofeventDots.maxto indicate event presence. to indicate event presence.
Has a corresponding showEvents config.
-
For a consistent API, allow startDate to set the year
-
Identifies an object as an instance of YearView class, or subclass thereof.