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
Post a Comment