To Repeat Rows or Columns for each Scenario
Repeat the rows in a section or columns in a row for each scenario on the shelf and show the scenario name as a heading.
- Drag a Repeat Contents element onto a Section or Row on the artboard, and enter the following in the repeat expression field.
=s, i in scenarios
- Additionally, to display a text attribute, click and drag a Text element from the group onto a Column.
- Select the Text element on the artboard, and in the Attributes pane, edit the Text Attribute to display a scenario attribute, such as the following:
=s.props.name
Row per scenario
<vdl-section vdl-repeat-contents="=s,i in scenarios"> <vdl-row> <vdl-column-heading="s.props.name"></vdl-column> </vdl-row> </vdl-section>
Column per scenario
<vdl-section> <vdl-row vdl-repeat-contents="=s,i in scenarios"> <vdl-column heading="s.props.name"></vdl-column> </vdl-row> </vdl-section>