Ngx-datatable: $$index missing in row click

Created on 31 Aug 2017  路  3Comments  路  Source: swimlane/ngx-datatable

I'm submitting a ... (check one with "x")

[x] bug report
[ ] feature request
[ ] support request => Please do not submit support request here, post on Stackoverflow or Gitter

Current behavior
Demo v9.3.1: when I click on a row, it trigger onActivate function, in row there is a property $$index
Demo v10.2.0: when I click on a row, it trigger onActivate function without $$index.

Expected behavior
Where can I find $$index value ?

What is the motivation / use case for changing the behavior?
I use $$index with pagination on server side.

Please tell us about your environment:

  • Table version: 10.2.0

  • Angular version: 2.0.x

  • Browser: [all]

  • Language: [[email protected]]

Most helpful comment

So: You still cannot access the rowIndex for onSelect() or onActivate(). I think this is real important,.

All 3 comments

This was removed because it was actually mutating the original object. See the changelog here - https://github.com/swimlane/ngx-datatable/blob/master/docs/changelog.md#1001

See this example on how to access the rowindex - https://github.com/swimlane/ngx-datatable/blob/master/demo/basic/inline.component.ts#L25

Is there any accessor of index in ngx-datatable mark (having (activate)="onActivate($event)") ?

So: You still cannot access the rowIndex for onSelect() or onActivate(). I think this is real important,.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

id1945 picture id1945  路  3Comments

eddy-geek picture eddy-geek  路  3Comments

alceucardoso picture alceucardoso  路  3Comments

JanStock picture JanStock  路  3Comments

iget-esoares picture iget-esoares  路  3Comments