<fx-repeatitem>

Description

fx-repeatitem is auto-created by fx-repeat and 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.

Attributes

NameDescription
repeat-indexboolean attribute being present when the repeatitem is the currently selected one.

Events

NameDescriptionDetails
index-changedispatched when a repeatitem is clicked or gets focus‘item’ - the repeatitem as node
‘index’ - the index of the changed repeat item.

Examples

See repeat examples