convertDateFilterConfigToDateFilterOptions()
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production.
Converts a workspace date filter config — as stored on the backend — into the date filter options the DateFilter component consumes (its filterOptions prop).
export declare function convertDateFilterConfigToDateFilterOptions(config: IDateFilterConfig): IDateFilterOptionsByType;
Parameters
Parameter | Type | Description |
|---|---|---|
config | date filter config from backend |
Returns
Remarks
Extracted from sdk-ui-dashboard so non-dashboard hosts (e.g. conditional formatting’s date condition picker) consume the same workspace preset catalog; dashboards re-export it.