matchDateFilterToDateFilterOption()
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production.
Tries to match a preset or a form with the provided value. Prioritizes presets over forms.
export declare function matchDateFilterToDateFilterOption(dateFilter: IDashboardDateFilter | undefined, availableOptions: IDateFilterOptionsByType): IDateFilterOptionInfo;
Parameters
Parameter | Type | Description |
|---|---|---|
dateFilter | IDashboardDateFilter | undefined | |
availableOptions | date options available |
Returns