matchDateFilterToDateFilterOption()
Home > @gooddata/sdk-ui-filters > matchDateFilterToDateFilterOption
matchDateFilterToDateFilterOption() function
This API is provided as an alpha preview for developers and may change based on feedback that we receive. Do not use this API in a production environment.
Tries to match a preset or a form with the provided value. Prioritizes presets over forms.
Signature:
export declare function matchDateFilterToDateFilterOption(dateFilter: IDashboardDateFilter | undefined, availableOptions: IDateFilterOptionsByType): IDateFilterOptionInfo;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
dateFilter |
IDashboardDateFilter | undefined | |
|
availableOptions |
date options available |
Returns: