getApplied method
Information noteSTABLE.
This API is reliable and breaking changes are unlikely.
This API is reliable and breaking changes are unlikely.
qlik.app.theme.getApplied()
Retrieves the currently applied theme. Returns a QTheme object that consists of a theme and helper methods. Particular use for visualization extensions so these can use styling from the current theme.
Information noteOnly available in an app context.
Version history
Version state | Details |
---|---|
Introduced | Qlik Sense February 2018 |
Returns
A promise that resolves with a QTheme object consisting of the theme as a JSON structure.
Example
app.theme.getApplied().then(function(qtheme){
alert('Current theme background color: ' + qtheme.properties.backgroundColor);
});