Я использую NativeScript 6.1.1 и у меня есть RadListView, в котором я хотел бы иметь уникальные ссылки для каждой строки.Один из способов, о котором я думал, это то, что если бы я мог получить поле индекса, то у меня могли бы быть поля 'automaText' со следующими
name0
name1
name2
Вот мой текущий шаблон;
<RadListView automationText="listing"
[items]="dataItems"
[filteringFunction]="filterItems"
pullToRefresh="true"
(pullToRefreshInitiated)="onPullToRefreshInitiated($event)">
<ng-template tkListItemTemplate let-item="item">
<StackLayout orientation="vertical">
<GridLayout class="itemContainer" rows="50,*" columns="*,100">
<Label automationText="name" row="0" col="0" class="nameLabel" [text]="item.name"></Label>
</GridLayout>
</StackLayout>
</ng-template>
</RadListView>
Можно ли сделать что-то подобное?
<Label automationText="name#{index}" row="0" col="0" class="nameLabel" [text]="item.name"></Label>