How to apply a CSS that is fetched from the application as a string in GWT? -


i have gwt application @ time gets string server represents css file content. possible apply 'css' string using gwt application?

try this:

element head = document.get().getelementsbytagname("head").getitem(0); styleelement style = document.get().createstyleelement(); style.settype("text/css"); style.setinnerhtml("your css goes here"); head.appendchild(style); 

Comments

Popular posts from this blog

design - Custom Styling Qt Quick Controls -

Unable to remove the www from url on https using .htaccess -