Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Modal Services

Table of contents
  1. show
  2. popup

show

Description: opens a dialog customized wiht parameters Parameters:

  • type: ModalType - type of Modal(Error, Warning or Info)
  • title: string - default value for the key if none found
  • content: string - text inside of the dialog
  • width?: string | number - width of the dialog
  • buttons?: Array - buttons in the dialog

Example: show(ModalType.error, ‘key_error’, err.message) Remark: this function returns MatDialogRef

Description: opens a popup customized wiht parameters Parameters:

  • popupConfig: PopupConfig - customizable properties of the popup

Example: const popupConfig PopupConfig = new PopupConfig(); popup(popupConfig) Remark: this function returns Observable