is there a way to use fontawesome in a ss? I would...
# suitescript
p
is there a way to use fontawesome in a ss? I would like to add an icon to a button I created using
context.form.addButton
.
g
There might be easier solutions, but I did something like:
scriptContext.form.clientScriptModulePath = “./cs_add_css.js”
and then inside of that JS, something like:
var link = document.createElement( “link” );
link.href = “https://…“;
link.type = “text/css”;
link.rel = “stylesheet”;
link.media = “screen,print”;
document.getElementsByTagName( “head” )[0].appendChild( link );
So idea is that you add the CSS dynamically thru the script which is added in UserEvent beforeLoad