Re:If Not SPAs, What?
by recursivedoubts on Thursday October 29, 2020 @11:52AM
(#24931803)
htmx is focused on increasing the network-oriented expressiveness of HTML, rather than on pure front end enhancements.
For something like menu popups or toggling content on the front end, I would expect an application to use a front end framework like bootstrap, or perhaps WebComponents, or a scripting solution like Alpine, in conjunction with htmx.
Alpine and htmx complement one another nicely, particularly since htmx 0.2.0, when we started firing kebab-style event names.
Re:If Not SPAs, What?
by dinkleberg on Thursday October 29, 2020 @01:15PM
(#24932770)
Ah for whatever reason I always saw this as an either-or scenario, not in tandem.
That gives me hope as I’ve wanted to use htmx on a project. Gonna start playing around with it tonight. Thanks!
Basically, you can toggle visibility on your pop up menus or modals with standard CSS/HTML. The visibility class/attribute can be controlled declaratively or imperatively without much JS. You can even use CSS transitions to add nice smooth animation to your menu/overlay.
#UseThePlatform
I've settled on Alpine instead for the time being because it has some data management built in. I'm thinking I'm going to have to switch to Vue on my current project because I feel so much less productive with Alpine.