Skip to content

Commit

Permalink
feat(pix-table): expose index on row
Browse files Browse the repository at this point in the history
  • Loading branch information
xav-car committed Feb 27, 2025
1 parent 67b588d commit cdf232c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addon/components/pix-table.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
</tr>
</thead>
<tbody>
{{#each @data as |row|}}
{{#each @data as |row index|}}
<tr
class={{if this.hasOnRowClick "pix-table__clickable-row" ""}}
{{on "click" (fn this.onClick row)}}
>
{{yield row "cell" to="columns"}}
{{yield row "cell" index to="columns"}}
</tr>
{{/each}}
</tbody>
Expand Down

0 comments on commit cdf232c

Please sign in to comment.