jordi fita mas
992bbf32a9
I tried this already when i started adding filters, but i tried to use AlpineJS for that, and could not because it would reset the context each time i submitted the filters, due to HTMx replacing the whole content. I realized that the only thing i need is some “flag” to show and hide the form with CSS. I do not even need AlpineJS for that, but i used it anyway because then i can use the x-cloak thing to hidde the toggle button for users with JavaScript disabled. Similarly, the body by default has that “flag” set in the markup, and is removed when AlpineJS is initialized, thus if JavaScript is disabled the filters form is shown nevertheless. |
||
---|---|---|
.. | ||
fonts | ||
alpinejs@3.12.0.min.js | ||
bars.svg | ||
htmx@1.9.2.min.js | ||
invoice.css | ||
numerus.css | ||
numerus.js | ||
numerus.svg |