Using a vdl-repeat component, you can create a multi-scenario table that shows a table column per scenario.
- In the Palette > Components group, click and drag a Table element onto a container on the artboard. Proceed through each page of the Table wizard before clicking Finish.
- Drag the Repeat element onto the Table Column on the artboard and enter the following in the Repeat field:
- Select the Table Column on the artboard. In the Attributes pane, set:
- Heading to "=s.props.name"
- Scenario to "=i"
- Data > Entity to "MY_ARRAY"
<vdl-table>
<vdl-table-column vdl-repeat="=s,i in scenarios" scenario="=i" entity="MY_ARRAY"
heading="=s.props.name"></vdl-table-column>
</vdl-table>