【问题标题】:Change the default number of rows in griddle更改 griddle 中的默认行数
【发布时间】:2015-09-21 07:47:43
【问题描述】:

我正在尝试更改在烤盘中显示的默认行数。有人知道怎么做吗?谢谢!

【问题讨论】:

    标签: reactjs griddler


    【解决方案1】:

    绝对应该将其作为添加功能的拉取请求,但设置默认值的行是 [https://github.com/GriddleGriddle/Griddle/blob/master/scripts/griddle.jsx#L37],您可以手动更改它。

    【讨论】:

      【解决方案2】:

      这很简单。只需在 Griddle 标记中使用“resultsPerPage”属性。在下面我只显示 3 行而不是每页 5 个默认行。

      <Griddle resultsPerPage={3} results={fakeData}/>
      

      【讨论】:

        猜你喜欢
        • 2010-11-27
        • 2016-07-29
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2012-06-30
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多