sense-on-off-switch
Version:
Set a variable in Qlik Sense to true/false using an on-off switch.
21 lines (16 loc) • 328 B
JavaScript
/*global define*/
define( [
'jquery',
'underscore'
], function ( $, _ ) {
'use strict';
return {
/**
* Add a style to the document's header.
* @param cssContent (String)
*/
addStyleToHeader: function ( cssContent ) {
$( "<style>" ).html( cssContent ).appendTo( "head" );
}
};
} );