-
Hello hello, everything is in the title :). Cheers! |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 6 replies
-
I can't think of a way to do this in However, would something like the following be useful if it was added to {% for object in objects %}
<div>{{ object }}</div>
{% endfor %}
<template unicorn:visible="get_new_objects" /> |
Beta Was this translation helpful? Give feedback.
-
This is now released in 0.35.0. Documentation is located here: https://www.django-unicorn.com/docs/visibility/. Let me know if you run into any issues with it! |
Beta Was this translation helpful? Give feedback.
-
That looks like it should work. Have you updated the version of Unicorn installed to 0.35.0? Do you see any web dev console or Python errors?
…________________________________
From: Amayas Messara ***@***.***>
Sent: Friday, September 10, 2021 8:20:40 AM
To: adamghill/django-unicorn ***@***.***>
Cc: Adam Hill ***@***.***>; Comment ***@***.***>
Subject: Re: [adamghill/django-unicorn] Is there a way to implement an infinit scroller without adding javascript ? (Discussion #270)
So I added the span tag after the for loop in the template like in the documentation:
[image]<https://user-images.githubusercontent.com/51958712/132851872-896ff716-ad47-4ece-8b55-993d7d794065.png>
But the function is not trigerred when I scroll down to it and make it visible.
This is the view:
[image]<https://user-images.githubusercontent.com/51958712/132852079-30e12bbe-a31e-4af1-9c57-6af7129b20ce.png>
Is it supposed to work this way ?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub<#270 (reply in thread)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AACNM5LUAIY5AYQ6TTLXULLUBHZZRANCNFSM5DTBNMUQ>.
|
Beta Was this translation helpful? Give feedback.
-
It work very well.. but why the state loading is not triggered? |
Beta Was this translation helpful? Give feedback.
This is now released in 0.35.0. Documentation is located here: https://www.django-unicorn.com/docs/visibility/. Let me know if you run into any issues with it!