".
</p>
<pre class="lang-js" id="eighth"><code>
diagram.nodeTemplate =
  new go.Node("Auto", { width: 80, height: 100, resizable: true })
    .add(
      new go.Shape({ fill: "white" }),
      new go.Panel("Table", {
          margin: 3,
          stretch: go.Stretch.Fill,
          defaultStretch: go.Stretch.Horizontal,
          background: "red"
        })
        .add(
          new go.TextBlock({ row: 0, background: "lime" })
            .bind("text", "t1"),
          new go.TextBlock({ row: 1, backgro