-
Notifications
You must be signed in to change notification settings - Fork 638
Deprecation: Widget body (w‐body)
Taylor Hunt edited this page Aug 2, 2019
·
2 revisions
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>
To automatically fix deprecated marko syntax, try the marko migrate
command from the CLI.