get method
Information noteSTABLE.
This API is reliable and breaking changes are unlikely.
This API is reliable and breaking changes are unlikely.
qlik.theme.get(id)
qlik.app.theme.get(id)
Retrieves a QTheme object that consists of a theme and helper methods.
Information noteThis method requires an open app.
Version history
Version state | Details |
---|---|
Introduced | Qlik Sense February 2018 |
Parameters
id
Type: String
Mandatory when used in global context, optional when used in app context.
ID of the theme to fetch.
If no ID is specified when in app context, the theme that is saved for the app is returned.
Returns
A promise that resolves with a QTheme object consisting of the theme as a JSON structure.
Example
qlik.theme.get('my-theme-id').then(function(qtheme){
alert('Theme background color: ' + qtheme.properties.backgroundColor);
});