Options
All
  • Public
  • Public/Protected
  • All
Menu

Service to open own modal interacting dialog components based on Material Design via [MatDialog]{@link MatDialog} service.

Hierarchy

  • DialogService

Index

Constructors

Methods

  • openAlertDialog(title: string, content: string, configMatDialog?: MatDialogConfig<DialogData>): MatDialogRef<AlertDialogComponent, DialogResult>
  • Open the alert modal dialog and show his content. Alert dialog should be used to show the user a crucial message.

    Parameters

    • title: string

      Dialog title.

    • content: string

      Informs user about message.

    • Optional configMatDialog: MatDialogConfig<DialogData>

      Extra configuration options.

    Returns MatDialogRef<AlertDialogComponent, DialogResult>

    Reference to the newly-opened alert dialog. When dialog closes an empty object is returned.

  • openConfirmDialog(title: string, question: string, negativeChoiceLabel: string, positiveChoiceLabel: string, configMatDialog?: MatDialogConfig<DialogData>): MatDialogRef<ConfirmDialogComponent, DialogResult>
  • Open question model dialog with positive and negative answer button.

    Parameters

    • title: string

      Dialog title.

    • question: string

      Question forming the idea of the whole dialogue with the user.

    • negativeChoiceLabel: string

      Negative answer label

    • positiveChoiceLabel: string

      Positive answer label

    • Optional configMatDialog: MatDialogConfig<DialogData>

      Extra configuration options.

    Returns MatDialogRef<ConfirmDialogComponent, DialogResult>

    Reference to the newly-opened question dialog. When dialog is closed made choice is returned.

  • openPromptDialog(title: string, question: string, placeholder: string, configMatDialog?: MatDialogConfig<DialogData>): MatDialogRef<PromptDialogComponent, any>
  • Open question model dialog with answer from user as message response.

    Parameters

    • title: string

      Dialog title.

    • question: string

      Question forming the idea of the whole dialogue with the user.

    • placeholder: string

      Label for answer input box.

    • Optional configMatDialog: MatDialogConfig<DialogData>

      Extra configuration options.

    Returns MatDialogRef<PromptDialogComponent, any>

    Reference to the newly-opened question with answer dialog.

Generated using TypeDoc