getTabForPreset()
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production. See API maturity.
Determine which tab should be selected based on the selected preset’s granularity.
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”