代码之家  ›  专栏  ›  技术社区  ›  J. Parashar

禁用分页并在滚动时显示所有结果

  •  0
  • J. Parashar  · 技术社区  · 6 年前

    我想完全禁用分页并显示sync调用的所有结果,

    如果 paginate 设置为 false ,我可以看到多达99条的滚动条,除此之外我只能搜索我相信。 有没有办法,结果超出默认索引可以看到滚动下来?

    enter image description here

    1 回复  |  直到 6 年前
        1
  •  0
  •   J. Parashar    6 年前

    有一个简单的方法来实现这一点。

    <Typeahead
        {...this.props}
        options= {objects}
        maxResults = {objects.length}
        paginate = false
    />
    

    从官方文件来看:

    详细文件: react-bootstrap-typeahead-props

    推荐文章