【发布时间】:2019-05-08 15:08:15
【问题描述】:
我刚开始使用 Django 2 和最新版本的 django-tables2 编写应用程序。到目前为止,一切正常,没有任何问题,但现在我有一个问题。我想通过使用粘性标题和无限滚动来显示一些数据(所以我想向下滚动而不是在表格底部有第 1,2,3...,N 页)。
我检查了几页(包括 django-tables2 https://django-tables2.readthedocs.io/en/latest/index.html 的官方文档)。但是我没有找到任何可以解决问题的解决方案。我正在考虑将 django-endless-pagination(https://django-endless-pagination.readthedocs.io/en/latest/start.html#quickstart) 与 django-tables2 结合使用,但我什至不确定这是否可行。
所以我的问题是是否可以在 django-tables2 中使用无限滚动?
【问题讨论】:
-
django-endless-pagination --> 这个项目被放弃了。不要认为这是个好主意。
-
@LuSchink 你可能没有意义......你有其他想法或者我可以用 django-tables2 实现无限滚动吗?
标签: django pagination infinite-scroll django-tables2