To Repeat all Table Columns for each Scenario
Using a vdl-repeat-contents component, you can create a multi-scenario table that repeats all the table columns per scenario on the shelf.
The table columns will be grouped by scenario.
- In the group, drag a Table element onto a container on the artboard. Proceed through each page of the Table wizard then click FINISH.
- Drag a Repeat Contents component onto the Table on the artboard and enter the following in the repeat expression field:
=s,i in scenarios
- Select each 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-repeat-contents="=s,i in scenarios">
<vdl-table-column scenario="=i" entity="MY_ARRAY" heading="='my_array (' + s.props.name + ')'">
</vdl-table-column>
<vdl-table-column scenario="=i" entity="MY_ARRAY2" heading="='my_array2 (' + s.props.name + ')'">
</vdl-table-column>
</vdl-table>
