# DialogResponse

**Kind**: interface | **Module**: [Modals](https://docs.interop.io/desktop/reference/javascript/modals/index.md)

**Source**: https://docs.interop.io/desktop/reference/javascript/modals/dialogresponse/index.html

Describes the response returned by the platform after executing a request for displaying a dialog.

## Properties

- **`inputs`** (`Array<DialogInput>`, optional)
  List of the available dialog inputs.
- **`isClosed`** (`boolean`, optional)
  Flag indicating whether the dialog was closed by the user (via the "Close" button, by pressing the "Escape" button, or by clicking outside the dialog window).
- **`isEnterPressed`** (`boolean`, optional)
  Flag indicating whether the user pressed the "Enter" button and the dialog was closed without selecting an action button.
  In this case, the `responseButtonClicked` property won't be available, but you will still receive the available dialog inputs via the `inputs` property.
- **`isExpired`** (`boolean`, optional)
  Flag indicating whether the dialog timer has expired and the dialog was automatically closed.
- **`responseButtonClicked`** (`{ id: string; text: string; }`, optional)
  Describes the dialog button that was clicked.

## Related types

- [DialogInput](https://docs.interop.io/desktop/reference/javascript/modals/dialoginput/index.md)
