I’m trying to build a simple UI with the DataFilter component. From the code examples it looks like I need to provide a detailed configuration. Does the GoodData.UI API export any constant which already provides exactly the same DateFilter behavior as in KPI dashboards?
Best answer by Pavel
Hi
Simply put the following code at the beginning of your script:
import { defaultDateFilterOptions } from "@gooddata/sdk-ui-filters";
… and your code will be much simpler.
We will update the examples, thank you for pointing that out!