DayPilot.Modal.opener

The opener() method returns the corresponding DayPilot.Modal instance from within the modal dialog.

Declaration

DayPilot.Modal.opener()

Return Value

Returns a DayPilot.Modal object.

Notes

Call this method from code running inside the modal dialog when you need access to the current DayPilot.Modal instance.

Example

const modal = DayPilot.Modal.opener();

if (modal) {
  console.log(modal);
}

See Also

DayPilot.Modal.close

DayPilot.Modal.showUrl()

DayPilot.Modal Class

Availability

Availability of this API item in DayPilot editions:

LitePro
DayPilot for JavaScript