protonemedia/inertiajs-tables-laravel-query-builder

Feature Enhancement - Access row index on cell slot

caturandi-labs opened this issue · 0 comments

Hi @pascalbaljet , I have some issue when accessing row index on cell slot. I suggest you to add slot props (index). My reason is I want to process the index in table.

Please refer to this code:
https://github.com/protonemedia/inertiajs-tables-laravel-query-builder/blob/main/js/Components/Table.vue

please check line code 159, can you add this code :index="key" ?

<slot
      :name="`cell(${column.key})`"
      :item="item"
      :index="key"
    >
      {{ item[column.key] }}
</slot>