EventSelection
Configs
11
Configs
11Configure as false to preserve selection when clicking the empty schedule area.
Properties
8
Properties
8Class hierarchy
Selection
Configure as false to preserve selection when clicking the empty schedule area.
The events which are selected.
Functions
13
Functions
13Deselects all events.
Deselects the passed eventif it is selected.
| Parameter | Type | Description |
|---|---|---|
event | EventModel | The event to deselect. |
Deselects the passed event if it is selected.
| Parameter | Type | Description |
|---|---|---|
event | EventModel | The event to deselect. |
Removes events from the selection.
| Parameter | Type | Description |
|---|---|---|
events | EventModel[] | Events to be deselected |
Returns true if the event is selected.
| Parameter | Type | Description |
|---|---|---|
event | EventModel | The event |
Returns true if the event is selected
Selects the passed event if it is not selected.
| Parameter | Type | Description |
|---|---|---|
event | EventModel | The event to select |
preserveSelection | Boolean | Pass |
Selects the passed event if it is not selected.
| Parameter | Type | Description |
|---|---|---|
event | EventModel | The event select |
preserveSelection | Boolean | Pass |
Adds events to the selection.
| Parameter | Type | Description |
|---|---|---|
events | EventModel[] | Events to be selected |
Events
5
Events
5Fired 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 }) => {
});| Parameter | Type | Description |
|---|---|---|
source | Calendar | The Calendar instance. |
action | select | deselect | update | clear | One of the actions 'select', 'deselect', 'update', 'clear' |
selected | EventModel[] | An array of the Events added to the selection. |
deselected | EventModel[] | An array of the Event removed from the selection. |
selection | EventModel[] | The new selection. |
Event handlers
5
Event handlers
5Called any time there is a change to the events selected in the Calendar.
new EventSelection({
onSelectionChange({ source, action, selected, deselected, selection }) {
}
});| Parameter | Type | Description |
|---|---|---|
source | Calendar | The Calendar instance. |
action | select | deselect | update | clear | One of the actions 'select', 'deselect', 'update', 'clear' |
selected | EventModel[] | An array of the Events added to the selection. |
deselected | EventModel[] | An array of the Event removed from the selection. |
selection | EventModel[] | The new selection. |