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

# DefaultAlertingDialogComparisonPeriod()

- Package: [@gooddata/sdk-ui-dashboard](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/index.md)
- Kind: function
- Stability: beta
- Source: https://github.com/gooddata/gooddata-ui-sdk/blob/rel/11.64/libs/sdk-ui-dashboard/src/presentation/automations/alerting/DefaultAlertingDialog/DefaultAlertingDialogComparisonPeriod.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).
> 

Default render of the alerting dialog's comparison-period field: the dropdown selecting the period a change or difference condition compares against; static text with a single comparator, nothing for other condition types. Props-driven — the bare control without its label; reads no dialog context (only `useIntl`). The default dialog and [AlertingDialogComparisonPeriod()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.alertingdialogcomparisonperiod/index.md) render it with [useAlertingDialogComparisonPeriodProps()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.usealertingdialogcomparisonperiodprops/index.md) inside [AutomationDialogFormField()](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.automationdialogformfield/index.md).

**Signature:**

```typescript
export declare function DefaultAlertingDialogComparisonPeriod(input: IAlertingDialogComparisonPeriodProps): ReactElement | null;
```

## Parameters

| Parameter | Type | Description |
| --- | --- | --- |
| { alert, measure, overlayPositionType, selectedComparison, selectedGranularity, onComparisonChange, id, closeOnParentScroll, } | (not declared) |  |
| input | [IAlertingDialogComparisonPeriodProps](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.ialertingdialogcomparisonperiodprops/index.md) |  |

**Returns:**

ReactElement &#124; null
