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