Some inconsistencies: the node data in the Palette has a category but does not state that is a group; the node data that you add in the newLane function is a group but does not specify a category; you added the “NewLane” template to the collection of node templates, not the group templates.
[QUOTE=walter]Some inconsistencies: the node data in the Palette has a category but does not state that is a group; the node data that you add in the newLane function is a group but does not specify a category; you added the “NewLane” template to the collection of node templates, not the group templates.
[/quote]
Can you tell me how to add it to the group templates instead of the node templates? Couldn’t find it.
Either set Diagram.groupTemplate or add to Diagram.groupTemplateMap.
Just as with node templates, if you only have one template, you can set Diagram.groupTemplate and not bother at all to set the category on the data.
But if you want multiple group templates, you can either require category to be set on all of the data, or you can assign the default group template, whose name is the empty string. Then you would only need to set the category when you wanted to use a template other than the default one.