Skip to content

Deprecation: Widget body (w‐body)

Taylor Hunt edited this page Aug 2, 2019 · 2 revisions

Widget body

The w-body attribute is deprecated in favor of the <${dynamicTagname}/> syntax.

getInitialBody(input, out) {
   return input.renderBody || input.label
}
<button>
  <span w-body/>
</button>

…becomes:

<button>
  <if(input.renderBody)>
    <${input.renderBody}/>
  </if>
  <else>
    ${input.label}
  </else>
</button>