RecurrenceConfirmationPopup
A confirmation dialog shown when modifying a recurring event or some of its occurrences. For recurring events, the dialog informs the user that the change will be applied to all occurrences.
For occurrences, the dialog lets the user choose if the change should affect all future occurrences, or this occurrence only.
Built-in widgets and buttons
The Popup does not contain any built-in widgets, but it has built-in buttons in the toolbar that you can customize:
| Widget ref | Type | Weight | Description |
|---|---|---|---|
changeSingleButton |
Button | 100 | Change a single event in a recurring sequence |
changeMultipleButton |
Button | 200 | Change all future events in a recurring sequence |
cancelButton |
Button | 300 | Cancel |
Usage example:
const confirmation = new RecurrenceConfirmationPopup({
bbar : {
items : {
// Disable button
changeSingleButton : {
disabled : true
}
}
}
});
confirmation.confirm({
eventRecord : recurringEvent,
actionType : "delete",
changerFn : () => recurringEvent.remove(event)
});
See also
- RecurrenceEditor - Recurrence editor dialog
- RecurringEvents - Recurring events mixin
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of RecurrenceConfirmationPopup class, or subclass thereof.
-
Reference to the cancel button, if used
-
Reference to the "Apply changes to multiple occurrences" button, if used
-
Reference to the button that causes changing of the event itself only, if used
-
Identifies an object as an instance of RecurrenceConfirmationPopup class, or subclass thereof.
Functions
Functions are methods available for calling on the class-
Handler for cancel button. It calls
cancelFnprovided to confirm call and then hides the dialog. -
Handler for "Apply changes to multiple occurrences" button. It calls processMultipleRecords and then hides the dialog.
-
Handler for the button that causes changing of the event itself only. It calls processSingleRecord and then hides the dialog.
-
Applies changes to multiple occurrences as reaction on "Apply changes to multiple occurrences" button click.
-
Applies changes to a single record by making it a "real" event and adding an exception to the recurrence. The method is called as reaction on clicking the button that causes changing of the event itself only.