getFiscalTabsConfig()
Alpha API. Initial API, highly likely to change outside SemVer. Don’t build on it in production.
Get fiscal tabs configuration based on available presets and active calendars settings.
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.