Skip to content

Instantly share code, notes, and snippets.

@stefanwalther
Last active December 28, 2015 16:49
Show Gist options
  • Save stefanwalther/7531067 to your computer and use it in GitHub Desktop.
Save stefanwalther/7531067 to your computer and use it in GitHub Desktop.
Load CSS files in QlikView Object Extensions (QlikView 11).
// Define one or more styles sheets to be used within the extension
var cExtensionName = 'ExtensionName';
var cssFiles = [];
cssFiles.push('Extensions/' + cExtensionName + '/lib/css/style.css');
cssFiles.push('Extensions/' + cExtensionName + '/lib/css/style2.css');
for (var i = 0; i < cssFiles.length; i++) {
Qva.LoadCSS(Qva.Remote + (Qva.Remote.indexOf('?') >= 0 ? '&' : '?') + 'public=only' + '&name=' + cssFiles[i]);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment