title: gojs apply parameter only when part of group
body: <p>Using gojs, I would like to apply parameters only when the object is placed inside another object.</p>
  <p>for example a panel should only have the padding added <code>(or change value, from 0 to 25)</code> when placed inside a  H Group.</p>
  <p>is this possible?
  looking at <a href="https://gojs.net/latest/intro/events.html" rel="nofollow noreferrer">gojs docs</a> I see <code>SelectionGrouped</code> but not sure if this includes dropping the object into a <code>H Group</code></p>
  <pre><code>myDiagram.nodeTemplateMap.add(&quot;j2&quot;,
                  $(go.Node, &quot;Auto&quot;,
                      $(go.Panel, &quot;auto&quot;, {padding:0},
                          $(go.Shape, &quot;File&quot;),
                          $(go.TextBlock,  &quot;This\n is a\n file&quot;, textStyle(),
                              new go.Binding(&quot;text&quot;, &quot;text&quot;).makeTwoWay())
                      )
                  ));
  </code></pre>