vdl-attr
Attach one or more dynamic attributes to an element.
Example
<div vdl-attr="id: scenario.id, width: scenario.entities.WidthScalar.value"></div>
<img class="logo" vdl-attr="={src: scenario.attachments('logo.png').dataUrl}" width="104" height="49"/>
Attributes
vdl-attr | Either a string with comma separated pairs of key:values or as an expression, pass in a JavaScript object which will take the keys and values for the same purpose. | accepts expression | required |
---|