Lime Web Components API Documentation - v6.24.0
    Preparing search index...

    Type Alias DialogDestroyedEvent

    DialogDestroyedEvent: CustomEvent<number>

    Event emitted when a dialog is externally destroyed

    This event is dispatched via EventDispatcher when a dialog is closed by external means, such as the user closing a popup window. The event detail contains the dialog ID that was destroyed.

    This allows the component that created the dialog to clean up any references or state associated with the dialog.

    dialog.destroyed

    const eventDispatcher = this.platform.get(PlatformServiceName.EventDispatcher);
    eventDispatcher.addListener('dialog.destroyed', (event: DialogDestroyedEvent) => {
    const destroyedDialogId = event.detail;
    console.log(`Dialog ${destroyedDialogId} was closed`);
    });