celery-progress
celery-progress copied to clipboard
ajax request using htmx
Hi Cory, thank you very much for this repo!
Do you think it is easy to integrate this with htmx? If yes, what files and methods do I have to change or achieve that? Thank you!
You're welcome!
I do think it would be easy to do. You could base most of it off the progress bar example. Then on the backend, instead of returning JSON, you'd just want to return the relevant template fragment.
You could easily copy and modify this view, and then return something like
<div id='progress-bar' class='progress-bar' style="background-color: #68a9ef; width: {{progress.percent}}%;"> </div>
Let me know how it goes!