Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Event listener for add sibling button #134

Open
amikphoto opened this issue Apr 16, 2024 · 4 comments
Open

Event listener for add sibling button #134

amikphoto opened this issue Apr 16, 2024 · 4 comments

Comments

@amikphoto
Copy link

I use HTMX in formset form with siblings. When I press add sibling button formset adds sibling but HTMX doesn't know about DOM changes. There's a procedure in HTMX which could add new content to HTMX DOM but I have to start this procedure after formset siblings was added.
Could you help me with any idea how to do it?
It would be great to have an event listener in formset to start adding sibling and end adding sibling. Or maybe you have another way?

@jrief
Copy link
Owner

jrief commented Apr 16, 2024

Can you please point me on the specific page of the HTMX documentation.

Btw. I would really appreciate, if you could add an example using HTMX to the testapp/-folder. This would help me in adding the necessary hooks so that these two libraries can work together.

@amikphoto
Copy link
Author

@amikphoto
Copy link
Author

You can see htmx samples on HTMX site. https://htmx.org/examples/
It works fine with your formset java but now I have a problem with new sibling.

@amikphoto
Copy link
Author

Did you have a chanse to look at HTMX ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants