☕️ 𝗕𝘂𝘆 𝗺𝗲 𝗮 𝗰𝗼𝗳𝗳𝗲𝗲:
To support the channel and encourage new videos, please consider buying me a coffee here:
https://ko-fi.com/bugbytes
⭐Top resource to learn Python - https://datacamp.pxf.io/kOjKkV ⭐
In this video, we'll look at how to create an Infinite Scroll on the User Transactions page, using Django's pagination tools alongside the HTMX "revealed" trigger. We'll see how to work with Page objects and how to preserve selected form values using the hx-include attribute from HTMX
Github: https://github.com/bugbytes-io/Django...
📌 𝗖𝗵𝗮𝗽𝘁𝗲𝗿𝘀:
00:00 Intro
03:30 Defining page size setting
03:55 Adding Django pagination to View code
10:12 Adding Infinite Scroll with HTMX "revealed" trigger
21:09 Preserving form filters with HTMX hx-include attribute
𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:
📖 Blog: https://bugbytes.io/posts/
👾 Github: https://github.com/bugbytes-io/Django...
🐦 Twitter: / bugbytesio
📚 𝗙𝘂𝗿𝘁𝗵𝗲𝗿 𝗿𝗲𝗮𝗱𝗶𝗻𝗴 𝗮𝗻𝗱 𝗶𝗻𝗳𝗼𝗿𝗺𝗮𝘁𝗶𝗼𝗻:
HTMX Infinite Scroll: https://htmx.org/examples/infinite-sc...
Django Pagination: https://docs.djangoproject.com/en/5.0...
hx-include: https://htmx.org/attributes/hx-include/
#python #django #webdevelopment #htmx
Смотрите видео Django & HTMX App - Infinite Scroll and Pagination онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь BugBytes 08 Июль 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 3,283 раз и оно понравилось 169 людям.