Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello everyone,
I just installed the September version of Qlik Sense and I would like to use the newly added touch screen mode option inside my mashup.
My expectation was that if I changed it inside my Qlik Sense App like this:
It would also work inside my mashup that uses this app, but unfortunately this doesn't work. Does anyone know what else I should do to make it work inside mashups?
Kind regards,
Casper
Hi cpomeren003,
I think we missed this in the documentation; you should be able to do:
* Sets device type, which modifies the UI accordingly.
* The device type is automatically detected if it is not manually set.
*
* @function
* @param {'auto'|'touch'|'desktop'} deviceType - String describing the device type.
*
* @example
* qlik.setDeviceType('desktop');
` */
I hope this helps
Hi cpomeren003,
I think we missed this in the documentation; you should be able to do:
* Sets device type, which modifies the UI accordingly.
* The device type is automatically detected if it is not manually set.
*
* @function
* @param {'auto'|'touch'|'desktop'} deviceType - String describing the device type.
*
* @example
* qlik.setDeviceType('desktop');
` */
I hope this helps
That worked, I placed it here:
require( ["js/qlik"], function ( qlik ) {
qlik.setDeviceType('desktop');
Rest of code
}
Is this the preferred location or it doesn't really matter as long as it's inside the qlik.js?
Thanks for the fast response/help.
Yes, this is the best location
Ok, great to know.
Thanks again!