React-bootstrap-table2: Pass rowIndex to expandedArea

Created on 17 Jul 2019  路  3Comments  路  Source: react-bootstrap-table/react-bootstrap-table2

Sorry, first of all, this is not an issue.

I would like to know if there is a way to pass the row index to the expandedArea renderer.
P.S. I tried adding the index to the data before passing the data prop to ToolkitProvider, but it doesn't work when I sort the table. It will work on the first load but not after sorting.

row-expand

All 3 comments

@imtmh I can add it to the function of expandRow.renderer in next version:

const expandRow = {
  renderer: (row, rowIndex) => (
    ...
  )
};

thanks

@imtmh please upgrade all packages to newest version and you will get the patch, thanks

Thanks for the fix, I will upgrade the packages and check it.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

cnav007 picture cnav007  路  4Comments

saifulss picture saifulss  路  4Comments

eylonronen picture eylonronen  路  3Comments

thevangelist picture thevangelist  路  4Comments

prajapati-parth picture prajapati-parth  路  4Comments