【问题标题】:Fixed data table for pagination分页固定数据表
【发布时间】:2016-07-10 05:27:45
【问题描述】:

如何用fixed-data-table实现分页

我想用fixed-data-table 实现分页。根据documentation,我们必须为其设置高度,以便我可以计算visible zone 以显示行。

有没有办法做到这一点?任何棘手的方式也欢迎。谢谢。

【问题讨论】:

  • 根据什么文件?你能提供一个链接吗?我也有同样的问题,但这里没有太多可解决的问题。
  • 只需检查this pageEither height or maxHeight must be specified.
  • 如果您使用链接编辑您的答案,我会为您的问题投票! (在根据 SO 编辑之前,我无法更改我的投票)
  • 好吧,够了。刚刚在我的回答中添加了指向the fixed-data-table document 的链接。 :)

标签: reactjs fixed-data-table


【解决方案1】:

我刚刚找到了一种方法。

maxHeight 设置为Table。根据the fixed-data-table document,我们必须设置height maxHeight。我的错。 最好多阅读文档。

另一件事是,如果我们使用 responsive-fixed-data-table,那么目前无法设置 maxHeight。因为这个包装器只是简单地设置了height: 100%

我稍后会发送 PR。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-03-16
    • 1970-01-01
    • 1970-01-01
    • 2018-06-18
    • 2014-09-25
    相关资源
    最近更新 更多