Open
Description
In order to expose the item index via binding, we can add it to list-view and repeater with adding
For repeater: after this line
dataItem["$index"] = i;
For list-view: before this line
item["$index"] = index;
This way users will be able to have access to the index of the item in their list like
e.g.
<Repeater items="{{ items }}">
<Repeater.itemsLayout>
<StackLayout />
</Repeater.itemsLayout>
<Repeater.itemTemplate>
<Label text="{{ $index }}" textWrap="true" />
</Repeater.itemTemplate>
</Repeater>
However, this is another operation that will be added for each cell.
Please vote in this issue if we should add this feature or not.
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.