get method

Note: STABLE.
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.

Note: This method requires an open app.

Version history

Introduced Qlik Sense February 2018

Parameters

Name Type Description
id 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);
	});

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?