[英]Customize cells Table react-virtualized
I'm using Table from ' react-virtualized '. 我正在使用来自' react-virtualized '的表。 Everything is working great.
一切都很好。
I customized my row with rowRenderer to add ' react-dnd ' and let my row able to being drag. 我用rowRenderer自定义了我的行,以添加' react-dnd '并使我的行能够拖动。
My question is about cells. 我的问题是关于细胞的。 Is it possible to customize them ?
是否可以自定义它们? Like usesome React Component as Dropdown inside cells ?
像有用的React Component一样作为单元格内部的下拉列表?
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 . 您可以为docs中所示的任何
Column
指定一个cellRenderer
。
function ({
cellData: any,
columnData: any,
dataKey: string,
isScrolling: boolean,
rowData: any,
rowIndex: number
}): node
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.