I'm using Table from ' react-virtualized '. Everything is working great.
I customized my row with rowRenderer to add ' react-dnd ' and let my row able to being drag.
My question is about cells. Is it possible to customize them ? Like usesome React Component as Dropdown inside cells ?
Everything is store inside { columns } props, but no idea how to use it.
Thanks a lot for this amazing lib.
My question is about cells. Is it possible to customize them ?
Yes. You can specify a cellRenderer
for any Column
as shown in the docs .
function ({
cellData: any,
columnData: any,
dataKey: string,
isScrolling: boolean,
rowData: any,
rowIndex: number
}): node
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.