onSelect & row index
I have a use case where I need to duplicate the selected rows in a table. So far so good, I can easily get the row selection.
My problem is that I should duplicate them in the order in which they appear in the table, which could be sorted, i.e. the order of the row keys does not match the order in which the rows appear in table.
Would it be possible to have a fourth parameter to the onSelect callback (row, isSelected, e, rowIndex), or, alternatively, is there a callback that yields me the index of a given row (key)? (or should I directly look in state.data?)
Thanks.
@stephanebarbey, I think pass the rowIndex as fourth argument is possible in next version, thanks
that would be great! Thanks.
@stephanebarbey, this feature was implemented on v3.5.0, now you can get the rowIndex on onSelect's fourth argument.
yes we can get the rowIndex, it's helpful, thanks for that @AllenFang , but the doc is not update