I can add items to a node and place a font awesome icon as the text, like this:
node.items.push(
{
scaleWithZoom: true, scaleWithSize: true,
text: "", // + ,
px: -.5, py: -1,
extra: [{ hyperlink: node.data.extra.hyperlinkURL }],
textStyle: { font: "15px FontAwesome", fillColor: "white" },
backgroundStyle: {
fillColor: "#09c",
lineColor: "transparent",
}
});
But how do I set the classname to look something like what I get with this:
class="fa fa-camera fa-stack-1x"
or, better yet:
<span class="fa-stack fa-lg">
<i class="fa fa-camera fa-stack-1x"></i>
<i class="fa fa-ban fa-stack-2x text-danger"></i>
</span>