Skip to main content

applyTheme

FitFileViewer - API Documentation v29.4.0


FitFileViewer - API Documentation / utils/theming/core/theme / applyTheme

Function: applyTheme()

applyTheme(theme: string, withTransition: boolean): void

Defined in: utils/theming/core/theme.js:32

Apply the given theme to the document body and persist it.

Parameters​

theme​

string

'dark', 'light', or 'auto'

withTransition​

boolean = true

Whether to animate the theme change

Returns​

void