Menu

bound-repeat-add

An HTML content command that makes it host element a control for adding new items to a bound-repeat on the same Screen. The host element will then do the same thing as the addition button in bound-repeat's own controls: adds a new item to the Collection when the element is clicked. However, unlike with bound-repeat's own button, the new item can only be placed at the start or end of the Collection, as defined by the bound-repeat-add-last secondary attribute.

The primary attribute expression of bound-repeat-add is expected to match the bound-repeat-name value of a bound-repeat on the same Screen, defining the repeat and its Collection that this clickable host element will then be modifying.

Secondary attributes

bound-repeat-add-last

Required
Value type
EL-evaluated
No Boolean Yes
Defines whether the added item becomes the first or last item of the Collection. Should the resolved value be true, the items are added to the end of the Collection, otherwise they'll be added at the start.

If not defined, value of true is used.

Comments

0 comments