themesqliksensemashup

How to set the theme for app objects in Mashups?


I am creating a mashup in Qlik Sense and want to use a different theme for the charts.

My Qlik Sense app(s) have a second theme that I want to use and thus have set in the app(s) to use the non-default one. When I open the apps all is working fine, I get to see that non-default theme.

However in my Mashup website it does use the default Qlik Sense theme for the charts.

How can I tell it to use a different theme (via Javascript)?


Solution

  • As of the February 2018 release of Qlik Sense, you can call: qlik.theme.apply('my-theme'); after the qlik.openApp(appId, config);

    It's even documented at: https://help.qlik.com/en-US/sense-developer/February2018/Subsystems/APIs/Content/CapabilityAPIs/ThemeAPI/apply-method.htm