getApplied method

Note: STABLE.
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 and widgets so these can use styling from the current theme.

Note: Only available in an app context.

Version history

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);
});

Did this information help you?

Thanks for letting us know. Is there anything you'd like to tell us about this topic?

Can you tell us why it did not help you and how we can improve it?