MonthView
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.
In the example below, the MonthView may be resized vertically by dragging the splitter handle just below it.
When the height is changed by dragging the splitter, the view responsively adjusts the event height to show more or fewer events per cell. See responsiveEventHeight.
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 single month in a calendar like view.
Cell rendering can be customized using the dayCellRenderer method.
Event rendering can be customized using the eventRenderer method.
Useful configs
| Config | Description |
|---|---|
| eventHeight | Height of event bars in pixels |
| showWeekNumber | Show week number in day cells |
| dayCellRenderer | Custom renderer for day cells |
| autoRowHeight | Flex week rows or shrinkwrap events |
| hideNonWorkingDays | Hide weekend/non-working day columns |
See also
- Calendar — The main Calendar that hosts this view
- OverflowPopup — Popup shown for overflowing events in day cells
- WeekExpander — Feature to expand week rows showing all events
- DayCellRenderer — Mixin providing cell rendering
Configs
Configs are options you supply in a configuration object when creating an instance of this class-
The maximum number of events to show in a cell when the row is shrinkwrapped. Use this to keep rows to a sane size when using autoRowHeight, or the WeekExpander feature.
-
Configure as
falseto hide the week number shown at the top-left of each day cellHas a corresponding runtime showWeekNumber property.
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of MonthView class, or subclass thereof.
-
Returns the resource associated with this month view when used inside a ResourceView
-
Configure as
falseto hide the week number shown at the top-left of each day cellHas a corresponding showWeekNumber config.
-
Identifies an object as an instance of MonthView class, or subclass thereof.