getTabForPreset()
Home > @gooddata/sdk-ui-filters > getTabForPreset
getTabForPreset() 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.
Determine which tab should be selected based on the selected preset's granularity.
Signature:
export declare function getTabForPreset(preset: DateFilterOption): CalendarTabType;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
preset |
The currently selected date filter option |
Returns:
"fiscal" if the preset uses a fiscal granularity, otherwise "standard"