# DialogResult

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

**Source**: https://docs.interop.io/desktop/reference/javascript/windows/dialogresult/index.html

Describes the result returned from showing a dialog.

## Properties

- **`action`** (`"clicked" | "closed" | "expired"`, required)
  If the user clicks a button in the dialog, this will be set to `"clicked"`. If the dialog was closed using its "Close" button, this will be set to `"closed"`.
  If the dialog has a timer and it expires before any user interaction occurs, this will be set to `"expired"`.
- **`button`** (`"negative" | "affirmative" | "cancel"`, optional)
  Specifies which button the user has clicked.
- **`value`** (`string`, optional)
  The string value from the user input of a `SingleInputDialog` dialog. This value will be available
  only when the value of the `button` property is `"affirmative"`.
  If the input filed is empty when the user clicks the affirmative button, this will be an empty string.
