File

packages/eui/packages/components/eui-dialog/services/eui-dialog.service.ts

Index

Methods

Methods

Public closeAllDialogs
closeAllDialogs()

Close all the dialogs.

Returns : void
Public closeDialog
closeDialog(dialogId?: string)

Close a dialog

Parameters :
Name Type Optional Description
dialogId string Yes

The id of the dialog to close. If not provided the last opened one will be closed.

Returns : void
Public disableAcceptButton
disableAcceptButton()

Disable Accept button of default eui-dialog footer.

Returns : void
Public disableDismissButton
disableDismissButton()

Disable Dismiss button of default eui-dialog footer.

Returns : void
Public enableAcceptButton
enableAcceptButton()

Enable Accept button of default eui-dialog footer.

Returns : void
Public enableDismissButton
enableDismissButton()

Enable Dismiss button of default eui-dialog footer.

Returns : void
Public getDialog
getDialog(dialogId: string)

Returns an Object with a dialog

Parameters :
Name Type Optional Description
dialogId string No

id of the dialog to be returned

Returns : OpenedDialog

OpenedDialog

Public getOpenedDialog
getOpenedDialog()

Returns an Observable with all opened windows.

Observable of OpenedDialog[].

Public openDialog
openDialog(config: EuiDialogInterface<HC | HCC | BC | BCC | FC | FCC>)
Type parameters :
  • HC
  • HCC
  • BC
  • BCC
  • FC
  • FCC

Open a dialog.

Parameters :
Name Type Optional Default value Description
config EuiDialogInterface<HC | HCC | BC | BCC | FC | FCC> No {}

Configuration applied to the dialog.

Returns : OpenedDialog

A dialog object of type OpenedDialog

results matching ""

    No results matching ""