Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Include external stylesheet?

Hi,

How can I include an external stylesheet? I've tried:

loadcss = document.createElement('link');

loadcss.setAttribute("rel", "stylesheet");

loadcss.setAttribute("type", "text/css");

loadcss.setAttribute("href", "style.css");

document.getElementsByTagName("head")[0].appendChild(loadcss);

..inside LoadScript->AddExtension() { } but without success, any ideas?

best regards.

10 Replies
Not applicable
Author

Ok, good to know, nonetheless.

Do you know how other extensiondevelopers generally tackle their HTML-situation?

thanks.