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

Constructors

Methods

  • 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.

    • OptionalconfigMatDialog: MatDialogConfig<DialogData>

      Extra configuration options.

    Returns MatDialogRef<AlertDialogComponent, DialogResult>

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

  • 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

    • OptionalconfigMatDialog: MatDialogConfig<DialogData>

      Extra configuration options.

    Returns MatDialogRef<ConfirmDialogComponent, DialogResult>

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

  • 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.

    • OptionalconfigMatDialog: MatDialogConfig<DialogData>

      Extra configuration options.

    Returns MatDialogRef<PromptDialogComponent, any>

    Reference to the newly-opened question with answer dialog.