DayResourceCalendarRow
This is normally used as the "All day events" section of a DayResourceView. It is not designed to be used standalone as a regular Widget.
A Widget which displays date and resource headers, and all day events at the top of a DayResourceView.
Cell rendering can be customized using the dayCellRenderer method.
Event rendering can be customized using the eventRenderer method.
It can be configured through the DayResourceView's allDayEvents config:
const calendar = new Calendar({
modes : {
dayresource : {
allDayEvents : {
showHeaderAvatars : true,
overflowClickAction : 'popup'
}
}
}
});
Useful configs
| Config | Description |
|---|---|
| showHeaderAvatars | Show resource avatars in column headers (true, 'last') |
| resourceHeaderRenderer | Custom function to replace default resource header HTML |
| resourceHeaderExtraRenderer | Custom function to add extra content below the header |
| hideEmptyResources | Hide resource columns with no events |
See also
- DayResourceView — The view that uses this all-day events row
- CalendarRow — Parent class providing row rendering
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.Use with care. This may result in no resource columns being rendered for completely empty dates.Has a corresponding runtime hideEmptyResources property.
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of DayResourceCalendarRow class, or subclass thereof.
-
Configure this as
trueto hide resource columns which contain no events.Use with care. 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.
-
Identifies an object as an instance of DayResourceCalendarRow class, or subclass thereof.
CSS variables
CSS variables that can be set to adjust appearance| Name | Description |
|---|---|
| --b-day-resource-calendar-row-border-color | Calendar row border color |