You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
which works well and loads a plotly.py graph into a div.
As Plotly uses templates, my goal it to have HTMX trigger a reload when the theme switches.
I thought adding from:html would work, see below, but this does not trigger the hx-get.
Besides, when you want to listen for an event "everywhere", you should use from:body and not from:html as per the doc, also please note the comma splits hx-triggers, you should just use a space to separate the event name and its modifiers (cf doc)
I'm trying to introduce a theme switcher using Bootstrap 5.3, which is implemented like:
Ie, on the
html
elementdata-bs-theme="light" of data-bs-theme="dark"
is added.On the page, I'm using HTMX to load content, example:
which works well and loads a
plotly.py
graph into adiv
.As Plotly uses templates, my goal it to have HTMX trigger a reload when the theme switches.
I thought adding
from:html
would work, see below, but this does not trigger the hx-get.Is this even possible?
The text was updated successfully, but these errors were encountered: