title: How to get the node data, inside the template in GOJS?
body: <p>I want to create a few textBlock only if the text in the data equals to specific string.
  if not - I want to create only one textBlock.</p>
  
  <pre><code>var template = GO(go.Node, "Auto",{desiredSize: new go.Size(width, height) },     
                    GO(go.Shape, shapeMap.getValue(shape), new go.Binding("fill", "fill")),  
                    ( ???? .includes("[UMS]")) ?
                          GO(go.Panel, "Vertical",
                              GO(go.TextBlock,{font: "7pt serif"}, new go.Binding("stroke", "color"), new go.Binding("text", "txtPart1")),
                              GO(go.TextBlock,{text: "[UMS]", font: "7pt serif", click: function(e, obj) {window.open("https://" + obj.part.data.key + ":8090")}}, new go.Binding("stroke", "color")),
                              GO(go.TextBlock,{font: "7pt serif"}, new go.Binding("stroke", "color"), new go.Binding("text", "txtPart2")))
                          :
                             GO(go.TextBlock,{font: "7pt serif"}, new go.Binding("stroke", "color"), new go.Binding("text", "txtPart1"))
  
                         );
  </code></pre>
  
  <p>How to test on the data.text if it's include or not?</p>
  
  <p>(I know how to get it inside function:click: function(e, obj) {return obj.part.data.key }</p>
  
  <p>or how to declare it - using Binding - so the data will be per node and not per template.
  but in the code inside the template??)</p>