Material-table 反应
Material-table for react
我的项目使用 material-ui。对于数据 tables,我使用 material-table。 material-ui basic table 有属性 "stickyHeader" 可以在滚动 table body 时修复 table header。 material-table 我需要同样的东西,但我找不到类似的东西。
我尝试使用自定义 css 来实现,但我的 table 变得依赖于布局。有什么简单的解决方案可以为我的 material-table 固定页脚和 header 吗?
您可以使用 options.maxBodyHeight 使 material-table 变得粘稠 header。但是目前还没有固定页脚的解决方案。
options={{
maxBodyHeight: 200
}}
我的项目使用 material-ui。对于数据 tables,我使用 material-table。 material-ui basic table 有属性 "stickyHeader" 可以在滚动 table body 时修复 table header。 material-table 我需要同样的东西,但我找不到类似的东西。
我尝试使用自定义 css 来实现,但我的 table 变得依赖于布局。有什么简单的解决方案可以为我的 material-table 固定页脚和 header 吗?
您可以使用 options.maxBodyHeight 使 material-table 变得粘稠 header。但是目前还没有固定页脚的解决方案。
options={{
maxBodyHeight: 200
}}