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 using <${dynamicTag}/> as shown below.

Old:

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

New:

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