> Documentation index: https://www.gooddata.ai/docs/gooddata-ui/llms.txt lists every page of these docs as Markdown.

# IUseAlertingDialogHeaderPropsInput

- Package: [@gooddata/sdk-ui-dashboard](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/index.md)
- Kind: interface
- Stability: beta
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-dashboard/src/presentation/automations/alerting/state/useAlertingDialogRegionProps.tsx

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Inputs of [useAlertingDialogHeaderProps()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.usealertingdialogheaderprops/index.md) that come from the dialog rather than its state.

**Signature:**

```typescript
export interface IUseAlertingDialogHeaderPropsInput 
```

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [onCancel?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.iusealertingdialogheaderpropsinput/index.md#iusealertingdialogheaderpropsinputoncancel) |  | () =&gt; void | **_(BETA)_** _(Optional)_ Closes the dialog; the header's back/close button calls it. |
| [ref?](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.iusealertingdialogheaderpropsinput/index.md#iusealertingdialogheaderpropsinputref) |  | Ref&lt;HTMLInputElement&gt; | **_(BETA)_** _(Optional)_ The dialog's initial-focus ref, attached to the title input. |

## Property details

### IUseAlertingDialogHeaderPropsInput.onCancel

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

Closes the dialog; the header's back/close button calls it.

**Signature:**

```typescript
onCancel?: () => void;
```

### IUseAlertingDialogHeaderPropsInput.ref

> **Beta API.** Mostly stable, but details may change in a minor release, outside SemVer. See [API maturity](https://www.gooddata.ai/docs/gooddata-ui/latest/integrations/platform/api-maturity/index.md).
> 

The dialog's initial-focus ref, attached to the title input.

**Signature:**

```typescript
ref?: Ref<HTMLInputElement>;
```
