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

$(‘#myPalette’).append((content))

here myPalette is div and Content is

“<svg xmlns=‘http://www.w3.org/2000/svg’ (http://www.w3.org/2000/svg‘) xmlns:xlink=’http://www.w3.org/1999/xlink’ (http://www.w3.org/1999/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.Node,
$(go.Picture, “Parallel_computer_printer_port.jpg”,
{ width: 50, height: 50 })
);