How to Add a Div element in Node Template

Hi, we are adding Dynamic SVG content in our Node

sometimes the SVG content may contain

Image, sometime it may have Path

so if we add a DiV element in NodeTemplate, we can load that SVG content Like


here myPalette is div and Content is

“<svg xmlns=‘’ (’) xmlns:xlink=‘’ (“’”) style=‘height: 50px’ width=‘100px’>”

is it possible to add div element in Node Template?

Any Help on this would be appreciated

One cannot add HTML into a Node template.

But you could have your node template be something like:

myPalette.nodeTemplate =
$(go.Picture, “Parallel_computer_printer_port.jpg”,
{ width: 50, height: 50 })