The vdl-repeat-contents attribute
vdl-repeat-contents
attribute is placed on a VDL or HTML element to repeat the contents of that element by iterating over a collection. This differs from a vdl-repeat
attribute, which will also include the element it is assigned to in the repeated blocks.
=<variable> in <collection>
Where
<variable>
is a symbol of your choice that can be referenced by further expressions, and
<collection>
is either a Set entity, Scenarios on the shelf, or a JavaScript array.
This example applies the vdl-repeat-contents
attribute to a list item containing a text element which references the scenario name.
<vdl-row>
<vdl-column>
<ul vdl-repeat-contents="=s,i in scenarios">
<li>
<span vdl-text="=s.props.name"></span>
</li>
</ul>
</vdl-column>
</vdl-row>
View Designer

Using the vdl-repeat-contents attribute
In the
pane, click and drag a Repeat Contents component onto the element with the content you wish to repeat.© 2001-2022 Fair Isaac Corporation. All rights reserved. This documentation is the property of Fair Isaac Corporation (“FICO”). Receipt or possession of this documentation does not convey rights to disclose, reproduce, make derivative works, use, or allow others to use it except solely for internal evaluation purposes to determine whether to purchase a license to the software described in this documentation, or as otherwise set forth in a written software license agreement between you and FICO (or a FICO affiliate). Use of this documentation and the software described in it must conform strictly to the foregoing permitted uses, and no other use is permitted.