fx-repeatitemis auto-created byfx-repeatand MUST NOT be used by page authors directly.
When a fx-repeat is initialized it creates a fx-repeatitem for each bound node in the repeat nodeset using the repeat.
The repeat template is instanciated once for the bound repeated node and stamped out as a fx-repeatitem.
This element acts as a wrapper for repeated items and can receive the boolean attribute repeat-index when it
is the currently selected item. By default after initialization the repeat index is always 1.
| Name | Description |
|---|---|
| repeat-index | boolean attribute being present when the repeatitem is the currently selected one. |
| aria-posinset | set by Fore: the 1-based position of the item in the whole nodeset. |
| aria-setsize | set by Fore: the number of items in the whole nodeset (also when only part of them is rendered). |
The item itself has role="listitem". See Accessibility of fx-repeat.
| Name | Description | Details |
|---|---|---|
| item-changed | dispatched when a repeatitem is clicked or gets focus | ‘item’ - the repeatitem as node ‘index’ - the index of the changed repeat item. |
Note: fx-append and fx-insert are dispatching index-changed events additionally in the context of mutating a repeated nodeset.
See repeat examples