How to get index of ngl-datatable of ng-lightning
AtouiIlyes opened this issue · comments
Atoui Ilyes commented
I am trying to get index of ngl-datatable but i didn't figure out how to do it ?
Paris Polyzos commented
You can do it using let-index="index"
in ng-template.
example:
table(ngl-datatable, [data]="data")
ngl-datatable-column(heading="#", key="index")
ng-template(nglDatatableCell, let-index="index")
span {{index}}
....
Atoui Ilyes commented
thanks that really helped me
Tasos Bekos commented
Thx @ppolyzos 👍