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

Add a shortcut for hx-vals #308

Closed
louisgavalda opened this issue Jan 23, 2023 · 5 comments
Closed

Add a shortcut for hx-vals #308

louisgavalda opened this issue Jan 23, 2023 · 5 comments

Comments

@louisgavalda
Copy link

Description

Hi Adam,

Thank you for maintaining this library, it is very practical to have almost all HTMX shortcuts so nicely integrated in Django.

I miss one though: did you ever considered adding a shortcut for hx-vals ? It could be pretty useful.

The hx-vals attribute allows you to add to the parameters that will be submitted with an AJAX request.

I am accessing those values when doing stuff like that: https://github.com/spookylukey/django-htmx-patterns/blob/master/inline_partials.rst#block-selection-in-the-template

Thank you very much.

Regards.

;-)

@adamchainz
Copy link
Owner

What do you imagine this filter would do? Basically json.dumps() ?

@kdmwangi

This comment was marked as off-topic.

@kdmwangi

This comment was marked as off-topic.

@adamchainz

This comment was marked as off-topic.

@adamchainz
Copy link
Owner

Closing due to inactivity. I don't think we need any particular helpers for hx-vals.

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

3 participants