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

# IAutomationsDateFilterConfig

- 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/contexts/AutomationsContext.ts

> **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).
> 

Date filter configuration provided by the dashboard connector so that AutomationDateFilter does not need to read dashboard selectors directly.

**Signature:**

```typescript
export interface IAutomationsDateFilterConfig 
```

## Properties

| Property | Modifiers | Type | Description |
| --- | --- | --- | --- |
| [availableGranularities](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.iautomationsdatefilterconfig/index.md#iautomationsdatefilterconfigavailablegranularities) |  | [DateFilterGranularity](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.datefiltergranularity/index.md)[] | **_(BETA)_** Granularities from the dashboard's effective (resolved) date-filter configuration; the fallback when no tab-scoped value is available. |
| [dateFilterOptions](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.iautomationsdatefilterconfig/index.md#iautomationsdatefilterconfigdatefilteroptions) |  | [IDateFilterOptionsByType](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-filters/sdk-ui-filters.idatefilteroptionsbytype/index.md) | **_(BETA)_** Date-filter options (presets) from the dashboard's effective (resolved) date-filter configuration; the fallback when no tab-scoped value is available. |
| [getGranularitiesForTab](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.iautomationsdatefilterconfig/index.md#iautomationsdatefilterconfiggetgranularitiesfortab) |  | (tabId: string) =&gt; [DateFilterGranularity](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-model/sdk-model.datefiltergranularity/index.md)[] | **_(BETA)_** Granularities from the given dashboard tab's effective (resolved) date-filter configuration — inherited settings included, not only tab-specific overrides. Empty when the tab has no effective configuration, in which case the caller falls back to [IAutomationsDateFilterConfig.availableGranularities](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.iautomationsdatefilterconfig/index.md#iautomationsdatefilterconfigavailablegranularities). |
| [getOptionsForTab](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.iautomationsdatefilterconfig/index.md#iautomationsdatefilterconfiggetoptionsfortab) |  | (tabId: string) =&gt; [IDateFilterOptionsByType](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-filters/sdk-ui-filters.idatefilteroptionsbytype/index.md) \| undefined | **_(BETA)_** Date-filter options from the given dashboard tab's effective (resolved) date-filter configuration — inherited settings included, not only tab-specific overrides. Undefined when the tab has no effective configuration, in which case the caller falls back to [IAutomationsDateFilterConfig.dateFilterOptions](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.iautomationsdatefilterconfig/index.md#iautomationsdatefilterconfigdatefilteroptions). |

## Property details

### IAutomationsDateFilterConfig.availableGranularities

> **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).
> 

Granularities from the dashboard's effective (resolved) date-filter configuration; the fallback when no tab-scoped value is available.

**Signature:**

```typescript
availableGranularities: DateFilterGranularity[];
```

### IAutomationsDateFilterConfig.dateFilterOptions

> **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).
> 

Date-filter options (presets) from the dashboard's effective (resolved) date-filter configuration; the fallback when no tab-scoped value is available.

**Signature:**

```typescript
dateFilterOptions: IDateFilterOptionsByType;
```

### IAutomationsDateFilterConfig.getGranularitiesForTab

> **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).
> 

Granularities from the given dashboard tab's effective (resolved) date-filter configuration — inherited settings included, not only tab-specific overrides. Empty when the tab has no effective configuration, in which case the caller falls back to [IAutomationsDateFilterConfig.availableGranularities](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.iautomationsdatefilterconfig/index.md#iautomationsdatefilterconfigavailablegranularities).

**Signature:**

```typescript
getGranularitiesForTab: (tabId: string) => DateFilterGranularity[];
```

### IAutomationsDateFilterConfig.getOptionsForTab

> **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).
> 

Date-filter options from the given dashboard tab's effective (resolved) date-filter configuration — inherited settings included, not only tab-specific overrides. Undefined when the tab has no effective configuration, in which case the caller falls back to [IAutomationsDateFilterConfig.dateFilterOptions](https://www.gooddata.ai/docs/gooddata-ui/latest/api-reference/sdk-ui-dashboard/sdk-ui-dashboard.iautomationsdatefilterconfig/index.md#iautomationsdatefilterconfigdatefilteroptions).

**Signature:**

```typescript
getOptionsForTab: (tabId: string) => IDateFilterOptionsByType | undefined;
```
