applyTheme
FitFileViewer - API Documentation v29.9.0
FitFileViewer - API Documentation / utils/theming/core/theme / applyTheme
Function: applyTheme()
applyTheme(
theme:string,withTransition?:boolean):void
Defined in: utils/theming/core/theme.js:70
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