EventSelection

Configs

11

Configure as false to preserve selection when clicking the empty schedule area.

deselectOnClickEventSelection
highlightPredecessorsEventSelection
highlightSuccessorsEventSelection
isEventSelectableEventSelection
multiEventSelectEventSelection

Properties

8

Class hierarchy

isEventSelection: Boolean= truereadonly
Identifies an object as an instance of EventSelection class, or subclass thereof.
isEventSelection: Boolean= truereadonlystatic
Identifies an object as an instance of EventSelection class, or subclass thereof.

Selection

Configure as false to preserve selection when clicking the empty schedule area.

The events which are selected.

isEventSelectableEventSelection
selectedAssignmentsEventSelection

Functions

13

Deselects the passed eventif it is selected.

ParameterTypeDescription
eventEventModel

The event to deselect.

Deselects the passed event if it is selected.

ParameterTypeDescription
eventEventModel

The event to deselect.

Removes events from the selection.

ParameterTypeDescription
eventsEventModel[]

Events to be deselected

Returns true if the event is selected.

ParameterTypeDescription
eventEventModel

The event

Returns: Boolean -

Returns true if the event is selected

Selects the passed event if it is not selected.

ParameterTypeDescription
eventEventModel

The event to select

preserveSelectionBoolean

Pass true to preserve any other selected events

Selects the passed event if it is not selected.

ParameterTypeDescription
eventEventModel

The event select

preserveSelectionBoolean

Pass true to preserve any other selected events

Adds events to the selection.

ParameterTypeDescription
eventsEventModel[]

Events to be selected

deselectAssignmentEventSelection
deselectAssignmentsEventSelection
isAssignmentSelectedEventSelection
selectAssignmentEventSelection
selectAssignmentsEventSelection

Events

5

Fired any time there is a change to the events selected in the Calendar.

// Adding a listener using the "on" method
eventSelection.on('selectionChange', ({ source, action, selected, deselected, selection }) => {

});
ParameterTypeDescription
sourceCalendar

The Calendar instance.

actionselect | deselect | update | clear

One of the actions 'select', 'deselect', 'update', 'clear'

selectedEventModel[]

An array of the Events added to the selection.

deselectedEventModel[]

An array of the Event removed from the selection.

selectionEventModel[]

The new selection.

eventSelectionChangeEventSelection

Event handlers

5

Called any time there is a change to the events selected in the Calendar.

new EventSelection({
    onSelectionChange({ source, action, selected, deselected, selection }) {

    }
});
ParameterTypeDescription
sourceCalendar

The Calendar instance.

actionselect | deselect | update | clear

One of the actions 'select', 'deselect', 'update', 'clear'

selectedEventModel[]

An array of the Events added to the selection.

deselectedEventModel[]

An array of the Event removed from the selection.

selectionEventModel[]

The new selection.