v7.3.0

DayCellCollecter
Mixin

Mixin that provides the ability to collect day cell data blocks containing the events of interest to a Calendar widget. For each date in the view's range, it builds a DayCell object that includes the events intersecting that date, metadata about the cell's position in the UI grid, and information needed by the rendering layer such as overflow state and time range associations. The mixin also supports event filtering via the eventFilter and resource-specific cell collection for resource-based views.

This is used by all implemented Calendar widgets except AgendaView, which creates its cellMap from the events it finds in the eventStore.

Views that use this mixin support filtering events per cell using eventFilter:

const calendar = new Calendar({
    modes : {
        month : {
            // Only show events that are not cancelled
            eventFilter({ eventRecord }) {
                return eventRecord.status !== 'cancelled';
            }
        }
    }
});
No results

Configs

Configs are options you supply in a configuration object when creating an instance of this class

Properties

Properties are getters/setters or publicly accessible variables on this class
  • isDayCellCollecter : Booleantrue
    READONLY
    ADVANCED
    Identifies an object as an instance of DayCellCollecter class, or subclass thereof.

Functions

Functions are methods available for calling on the class

    Events

    Events are triggered for certain actions in this class and can be listened for to react to those actions in your code

    Event handlers

    Event handlers are callbacks called as a result of certain actions in this class

    Type definitions

    Source path

    Calendar/widget/mixin/DayCellCollecter.js

    Contents