convertDateFilterConfigToDateFilterOptions()
Home > @gooddata/sdk-ui-filters > convertDateFilterConfigToDateFilterOptions
convertDateFilterConfigToDateFilterOptions() 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.
Converts a workspace date filter config — as stored on the backend — into the date filter options the DateFilter component consumes (its filterOptions prop).
Signature:
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.