I’m trying to access the repeatable row index in a custom FieldOverviewColumn component. The ultimate goal is to customise the available items in an autocomplete on a per-line basis.
However, it seems that the row index is inaccessible to custom components. A12’s RepeatTemplates and the components they reference (BodyRow etc.) are all internal. InlineBodyContentCell is defined as
<FieldOverviewColumn
key={row.rowIndexInDocument}
modelElement={column.modelElement}
config={renderConfig}
repeat={repeat}
alignment={column.specificHorizontalAlignment?.body}
/>
so uses the row index as the React key, however that value is inaccessible from custom code. Apart from this, no further information is passed down as to what row we’re in / what EntityInstancePath we are on.
Is there a way to access the row index from a custom FieldOverviewColumn override?