vdl-repeat-contents
Copy the contents of the element containing the vdl-repeat-contents attribute for each item in a Set, scenario on the shelf, or each element in a plain JavaScript array. This differs from vdl-repeat as it will not repeat the element which the vdl-repeat-contents attribute is on, only its contents.
Example
<p>This will show a list item per set element. It won't repeat the ul element.</p>
<ul vdl-repeat-contents="=factory,index in scenario.entities.Factories">
<li vdl-text="=index + ': ' + factory.value"></li>
</ul>
Attributes
vdl-repeat-contents | An expression in the form: "=x,y in expression", where "x" is the value of the current item, "y" is the current loop count and "expression" is a standard JavaScript expression that returns a Set, list of scenario or plain array. The loop variables, "x" and "y", can be referenced by any descendant element but not on the element containing the vdl-repeat-contents. | requires expression | required |
---|
© 2001-2020 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.