v7.3.0

EventSelection
Mixin

Mixin that tracks event selection by clicking on one or more events in the calendar. It manages a collection of selected events and keeps the UI in sync, applying or removing the selected CSS class on event elements as the selection changes. The mixin fires a selectionChange event whenever events are selected or deselected, allowing application code to respond to user selection gestures.

const calendar = new Calendar({
    listeners : {
        selectionChange({ selection }) {
            console.log('Selected events:', selection.map(e => e.name));
        }
    }
});

// Programmatic selection calendar.selectedEvents = [calendar.eventStore.first];
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

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

    Source path

    Calendar/view/mixin/EventSelection.js

    Contents