mysterious-toddler-20573
05/28/2021, 7:43 PMproud-dentist-32878
05/28/2021, 8:05 PMproud-dentist-32878
05/28/2021, 8:11 PMgetTriggerSpecs from htmx. I will try this and see if that worksproud-dentist-32878
05/28/2021, 8:56 PMmysterious-toddler-20573
05/28/2021, 11:05 PMproud-dentist-32878
05/28/2021, 11:07 PMquick-father-45112
05/29/2021, 7:04 AMxhtmx 🙂
First question is can I pass arbitrary data as part of my hx-post?quick-father-45112
05/29/2021, 7:05 AMhx-include but that's looking for form elements right? This is not a form input - I just want to pass 'foo=whatever' in the post.quick-father-45112
05/29/2021, 7:07 AMquick-father-45112
05/29/2021, 7:22 AMHX-Trigger-Name header, but I'd still love to know if it's possible to pass arbitrary data with the postsalmon-xylophone-28580
05/29/2021, 7:45 AMquick-father-45112
05/29/2021, 7:45 AMquick-father-45112
05/29/2021, 7:47 AM<button hx-post="url" hx-swap="outerHTML" hx-extra-data="foo='whatever'">+</button>salmon-xylophone-28580
05/29/2021, 7:53 AMquick-father-45112
05/29/2021, 7:54 AMquick-father-45112
05/29/2021, 7:55 AMsalmon-xylophone-28580
05/29/2021, 7:55 AMsalmon-xylophone-28580
05/29/2021, 7:56 AMquick-father-45112
05/29/2021, 7:56 AMquick-father-45112
05/29/2021, 7:56 AMsalmon-xylophone-28580
05/29/2021, 7:57 AMsalmon-xylophone-28580
05/29/2021, 7:57 AMquick-father-45112
05/29/2021, 7:58 AMminiature-printer-24569
05/29/2021, 9:12 AMminiature-printer-24569
05/29/2021, 9:23 AMsalmon-xylophone-28580
05/29/2021, 9:31 AMminiature-printer-24569
05/29/2021, 9:33 AMminiature-printer-24569
05/29/2021, 9:34 AM<button class="justify-center my-1 py-1 px-1 rounded-full cursor-default"
hx-post="{% url 'up-vote-post' post_id=post.pk %}"
hx-target="closest div"
hx-swap="OuterHTML"miniature-printer-24569
05/29/2021, 9:34 AM