DayResourceView
A calendar view showing resources grouped by date, it is normally used as a mode of a Calendar but may be used standalone as a regular Widget.
By default, it shows a one-week range encapsulating the Calendar's current date. This can be configured using the range config property.
Useful configs
| Config | Description |
|---|---|
| minResourceWidth | Minimum width of a resource column |
| showHeaderAvatars | Show resource avatars in column headers |
| hideEmptyResources | Hide resource columns with no events |
| range | Date range to display |
See also
- Calendar — The main Calendar that hosts this view
- DayResourceCalendarRow — All-day events row for this view
- ResourceView — Alternative resource layout with per-resource sub-views
Configs
Configs are options you supply in a configuration object when creating an instance of this class-
Configure this as
trueto hide resource columns which contain no events.This may result in no resource columns being rendered for completely empty dates.Has a corresponding runtime hideEmptyResources property.
-
By default, resource avatars are shown in the resource header if there is horizontal space. Configure this as
falseto inhibit this.Has a corresponding runtime showAvatars property.
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of DayResourceView class, or subclass thereof.
-
Configure this as
trueto hide resource columns which contain no events.This may result in no resource columns being rendered for completely empty dates.Has a corresponding hideEmptyResources config.
-
A callback function which an application may provide to filter out resource columns for particular dates.
Has a corresponding resourceDateFilter config.
-
By default, resource avatars are shown in the resource header if there is horizontal space. Configure this as
falseto inhibit this.Has a corresponding showAvatars config.
-
Identifies an object as an instance of DayResourceView class, or subclass thereof.