Skip to main content

AppSelectors

FitFileViewer - API Documentation v29.4.0


FitFileViewer - API Documentation / utils/app/lifecycle/appActions / AppSelectors

Variable: AppSelectors

const AppSelectors: { activeTab: string; areChartsRendered: boolean; areTablesRendered: boolean; currentTheme: string; getChartConfig: Object; getCurrentFile: string | null; getMapConfig: Object; getPerformanceMetrics: Object; hasData: boolean; isLoading: boolean; isMapRendered: boolean; isTabActive: boolean; }

Defined in: utils/app/lifecycle/appActions.js:311

State selectors - helper functions to get computed state values

Type Declaration​

activeTab()​

activeTab(): string

Get the current active tab

Returns​

string

Active tab name

areChartsRendered()​

areChartsRendered(): boolean

Check if charts are rendered

Returns​

boolean

True if charts are rendered

areTablesRendered()​

areTablesRendered(): boolean

Check if tables are rendered

Returns​

boolean

True if tables are rendered

currentTheme()​

currentTheme(): string

Get current theme

Returns​

string

Current theme

getChartConfig()​

getChartConfig(): Object

Get chart configuration

Returns​

Object

Chart configuration

getCurrentFile()​

getCurrentFile(): string | null

Get current file path

Returns​

string | null

Current file path

getMapConfig()​

getMapConfig(): Object

Get map configuration

Returns​

Object

Map configuration

getPerformanceMetrics()​

getPerformanceMetrics(): Object

Get performance metrics

Returns​

Object

Performance data

hasData()​

hasData(): boolean

Check if any data is loaded

Returns​

boolean

True if data is loaded

isLoading()​

isLoading(): boolean

Check if app is currently loading

Returns​

boolean

True if loading

isMapRendered()​

isMapRendered(): boolean

Check if map is rendered

Returns​

boolean

True if map is rendered

isTabActive()​

isTabActive(tabName: string): boolean

Check if a specific tab is active

Parameters​

tabName​

string

Tab name to check

Returns​

boolean

True if tab is active