@theredhead — Frontend Library - v1.0.0
    Preparing search index...

    Service for showing common application dialogs — alert, confirm, prompt, open-file, save-file, and about.

    Each method opens a modal dialog and returns a Promise that resolves when the user closes it. The service delegates to ModalService for the underlying dialog lifecycle.

    const confirmed = await this.dialogs.confirm({
    title: 'Delete item?',
    message: 'This action cannot be undone.',
    variant: 'danger',
    });

    if (confirmed) { ... }
    Index

    Constructors

    Methods

    • Show an "About" dialog with application information.

      Parameters

      Returns Promise<void>

      Resolves when the user closes the dialog.

    • Show a simple informational alert with a dismiss button.

      Parameters

      Returns Promise<void>

      Resolves when the user dismisses the dialog.

    • Show a confirmation dialog with confirm and cancel buttons.

      Parameters

      Returns Promise<boolean>

      true if the user confirmed, false otherwise.

    • Show a prompt dialog with a text input.

      Parameters

      Returns Promise<string | null>

      The entered string, or null if cancelled.

    • Show a save-file dialog powered by UIFileBrowser with a file-name input.

      Type Parameters

      • M = unknown

      Parameters

      Returns Promise<SaveFileResult<M> | null>

      The directory and file name, or null if cancelled.