django-endless-pagination | django-endless-pagination fork
kandi X-RAY | django-endless-pagination Summary
kandi X-RAY | django-endless-pagination Summary
django-endless-pagination fork
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Return a single page of objects
- Validate page number
- Return current page per page
- Returns a single page of objects
django-endless-pagination Key Features
django-endless-pagination Examples and Code Snippets
Community Discussions
Trending Discussions on django-endless-pagination
QUESTION
I just started to write an application using Django 2 and the most recent version of django-tables2. So far everything works without any problems but now I have a question. I would like to display some data by using a sticky header and infinite scroll (so instead of having Page 1,2,3...,N at the bottom of the table I want to scroll down).
I checked several pages(including the official documentation of django-tables2 https://django-tables2.readthedocs.io/en/latest/index.html). But I didn't find any solution which do the trick. I was thinking of using django-endless-pagination(https://django-endless-pagination.readthedocs.io/en/latest/start.html#quickstart) in combination with django-tables2 but I am not even sure if this would work.
So my question would be is it possible to use infinite scroll with django-tables2 ?
...ANSWER
Answered 2019-May-08 at 15:24I don't think you can use that logic for this. django-tables2 is a usefull plugin that acts on server-side, when Django renders the template.
For doing that infinite scrolling you must implement some javascript, doing the requests and adding html dynamically when user 'gets to the bottom'. I will not lie, it's not easy, but it's fun! x)
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install django-endless-pagination
You can use django-endless-pagination like any standard Python library. You will need to make sure that you have a development environment consisting of a Python distribution including header files, a compiler, pip, and git installed. Make sure that your pip, setuptools, and wheel are up to date. When using pip it is generally recommended to install packages in a virtual environment to avoid changes to the system.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page