Two node templates, one for the basic shapes and other for the grouped shapes

I have two types of shapes in a palette ,basic shapes and grouped shapes and when I drag them to the canvas same node templates applies for both type of shapes as i have only one node template for the canvas diagram .Is it possible to have two different node templates so that i can apply different properties without affecting the other type shapes properties.one node template for the custom shapes and other for the basic shapes.

Certainly – use multiple templates in the Diagram.nodeTemplateMap.

Read about this at http://gojs.net/latest/intro/templateMaps.html. There are many examples of this throughout the sample apps – just search for “templatemap”.

Thank you, walter