-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Index in data component #1497
Comments
Not have problems in framework. Please check your code. Change I created plnkr with the examle of this case working: |
@upmauro its work for dataGrid, but not dataList. Have any case for this? |
Huuum, i need time to think how we can solve it. In dataList component the template is created by pTemplateWrapper inside a ngFor (where we have index). I don't know how we can inject this value inside pTemplateWrapper. https://github.com/primefaces/primeng/blob/master/components/datalist/datalist.ts#L20-L22 @cagataycivici you have ideia how to solve it? |
@upmauro see i create plunker. |
This issue is already fixed here #1539 |
Fixed #1497 - Chip | Add aria-label to remove icon
I'm submitting a ... (check one with "x")
Plunkr Case (Bug Reports)
Please fork the plunkr below and create a case demonstrating your bug report. Issues without a plunkr have much less possibility to be reviewed.
http://plnkr.co/edit/NtWWnN
Current behavior
Can not get index in template repeat.
<template ngFor let-race [ngForOf]="races" let-i="index" [ngForTrackBy]="trackByFn"> <div class="ui-grid ui-grid-responsive ui-fluid" style="font-size:16px;padding:20px;border-bottom:1px solid #D5D5D5;"> <div class="ui-grid-row" style="font-size:14px"> <div class="ui-grid-col-3 ui-g-sm-6 md-6 lg-6"> <div class="ui-grid ui-grid-responsive ui-fluid"> <div class="ui-grid-row">{{race?.name}} {{i}}</div> <div class="ui-grid-row">{{i}}</div> </div> </div>
Expected behavior
Minimal reproduction of the problem with instructions
What is the motivation / use case for changing the behavior?
Please tell us about your environment:
Language: [all | TypeScript 2.0 | ES6/7 | ES5]
Node (for AoT issues):
node --version
= 6.9.1The text was updated successfully, but these errors were encountered: