late-king-98305
07/01/2022, 12:39 AMpowerful-army-90860
07/01/2022, 2:42 AMrefined-waiter-90422
07/01/2022, 3:02 AMancient-father-3063
07/01/2022, 5:36 AMancient-father-3063
07/01/2022, 5:37 AMpy
'hx-trigger': 'change, load', 'hx-get': '/listofflavors', 'hx-target': 'next select', 'hx-swap': 'innerHTML'
ancient-father-3063
07/01/2022, 5:37 AMancient-father-3063
07/01/2022, 5:37 AMancient-father-3063
07/01/2022, 5:38 AMancient-father-3063
07/01/2022, 5:38 AMbrainy-ice-92385
07/01/2022, 8:15 AMancient-father-3063
07/01/2022, 8:54 AMeager-tiger-27508
07/01/2022, 9:08 AMmost-jelly-15242
07/01/2022, 10:57 AMsome-diamond-25050
07/01/2022, 11:04 AMjolly-kite-167
07/01/2022, 12:59 PMmysterious-toddler-20573
07/01/2022, 1:29 PMancient-father-3063
07/01/2022, 2:24 PMancient-father-3063
07/01/2022, 2:25 PMancient-father-3063
07/01/2022, 2:25 PMancient-father-3063
07/01/2022, 2:25 PMancient-father-3063
07/01/2022, 2:28 PMhtml
<div hx-get="/clicked" hx-trigger="click[checkGlobalState()]">Control Click Me</div>
ancient-father-3063
07/01/2022, 2:28 PMgorgeous-ghost-95789
07/01/2022, 2:44 PMabundant-spring-38265
07/01/2022, 2:49 PMlate-king-98305
07/01/2022, 5:18 PMhx-indicator
puts an htmx-request
class on the element specified there; you'll want to define styles for that element both with the class (visible) and without (probably hidden). The example on that attribute is pretty good. https://htmx.org/attributes/hx-indicator/ (Doing it via adding and removing a class lets you use animations / transitions if you want; but, if you just want it to toggle between display: none
and display: inline-block
, that will work as well.)powerful-train-54786
07/01/2022, 11:22 PMpowerful-train-54786
07/01/2022, 11:50 PMfancy-elephant-10660
07/02/2022, 11:35 AMancient-father-3063
07/02/2022, 11:43 AM