react-bootstrap-table2 icon indicating copy to clipboard operation
react-bootstrap-table2 copied to clipboard

Is it possible to put a react component in the cell of a table?

Open jkoren opened this issue 3 years ago • 1 comments

I am experimenting with react-bootstrap-table2 for an open source application.

Question Is it possible to put a react component in the cell of a table? I have a table that looks like the attached screenshot, and am thinking about incorporating react-bootstrap-table2 to allow sorting of columns.

image

You can see the code here with the original table and the start of my react-bootstrap-table2 below it.

here is a working demo without react-bootstrap-table-2 .

jkoren avatar Apr 15 '22 02:04 jkoren

Yes, I think that what you are looking for is Row formatter.

This is a minimum example using it

Edit column-sort-test

Ymbere avatar Apr 15 '22 05:04 Ymbere