getFiscalTabsConfig()
Home > @gooddata/sdk-ui-filters > getFiscalTabsConfig
getFiscalTabsConfig() 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.
Get fiscal tabs configuration based on available presets and active calendars settings.
Signature:
export declare function getFiscalTabsConfig(presets: DateFilterRelativeOptionGroup | undefined, activeCalendars?: IActiveCalendars): IFiscalTabsConfig;
Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
presets |
DateFilterRelativeOptionGroup | undefined |
The relative presets option group to check, or undefined |
|
activeCalendars |
(Optional) Optional active calendars configuration from workspace settings |
Returns:
Configuration object with hasFiscal, hasStandard, and showTabs flags
Remarks
When activeCalendars is provided, it controls which calendar types are enabled: - activeCalendars.standard === true enables standard calendar - activeCalendars.fiscal === true enables fiscal calendar - Both enabled → show tabs for switching between calendars - Only one enabled → no tabs, show only that calendar type
When activeCalendars is undefined (not configured), defaults to standard only.