https://htmx.org logo
Join Discord
Powered by
# htmx-general
  • m

    mysterious-toddler-20573

    08/26/2022, 11:46 PM
    https://twitter.com/htmx_org/status/1563311524495499264
  • m

    mysterious-toddler-20573

    08/27/2022, 5:46 PM
    posting this to general too, because I'm pumped on it: https://twitter.com/htmx_org/status/1563581289646542850
  • m

    mysterious-toddler-20573

    08/27/2022, 5:47 PM
    idiomorph (which will form the basis for a new "morph" hx-swap option at some point) demonstrating better DOM morphing via id sets when compared with morphdom, the current standard for DOM merging
  • m

    microscopic-lamp-1076

    08/27/2022, 10:04 PM
    For an admin/CMS/CRUD UI, what frameworks should I consider other than Unpoly? Looking for something Alpine-like, simple, mostly server side.
  • r

    red-farmer-97020

    08/28/2022, 4:37 AM
    Does hx-boost require the server send back just the body? Is there a reason it doesn't use hx-select to select the body and ignore the head client side?
  • r

    red-farmer-97020

    08/28/2022, 5:15 AM
    Just answered my own question - the server can send back the entire HTML page, and the swapping won't mind
  • p

    proud-librarian-99598

    08/28/2022, 6:29 AM
    I have not used it as I am not s PHP developer, but this looks interesting: https://filamentphp.com
  • g

    gray-oyster-51537

    08/28/2022, 5:20 PM
    Automated testing with Hyperview works the same as with any other RN app. You can add test IDs to elements that can then be referenced by frameworks like Appium
  • g

    gray-oyster-51537

    08/28/2022, 5:22 PM
    Unfortunately jasonette is a dead project, some people tried to keep it alive through a fork at https://github.com/jasonelle/jasonelle, but that also seems dead. Hyperview is still under active development and used in several production apps
  • m

    microscopic-lamp-1076

    08/28/2022, 10:37 PM
    Thank you! This is helpful
  • m

    microscopic-lamp-1076

    08/28/2022, 10:38 PM
    Has anyone made a Gmail clone in HTMX?
  • r

    refined-waiter-90422

    08/29/2022, 7:35 AM
    Its something we all want but doesnt exist yet
  • r

    refined-waiter-90422

    08/29/2022, 7:37 AM
    Really nice example. Grug like picture
  • e

    eager-planet-96345

    08/29/2022, 9:32 AM
    hello
  • e

    eager-planet-96345

    08/29/2022, 9:33 AM
    how do i listen for websocket event in htmx
  • e

    eager-planet-96345

    08/29/2022, 9:33 AM
    ?
  • r

    ripe-action-67367

    08/29/2022, 10:01 AM
    There is no events support for websockets atm unfortunately
  • r

    ripe-action-67367

    08/29/2022, 10:03 AM
    I have experimented with them not so long ago, but have not tried to make a PR yet
  • r

    ripe-action-67367

    08/29/2022, 10:07 AM
    That being said, ws.js source code is relatively straightforward and if you serve a copy of the extension from your app rather than a CDN, it would be fairly easy to just add
    htmx.triggerEvent
    calls wherever you need them, although I will be the first to admit that this is suboptimal and events support should be in the extension
  • e

    eager-planet-96345

    08/29/2022, 10:37 AM
    ohh i see thanks for the response 🙂 much appreciated
  • m

    miniature-lizard-24702

    08/29/2022, 10:40 AM
    This seems like the more appropriate place for my question so I've moved it fromm #929014829212123156 . Hello. How can I swap in a web component (or dynamically enhance a static component) using htmx and know that when it is loaded it will work (if not fallback to static component again). if I fetch a component using htmx and that new chunk has a script tag, this could fail and now I've loaded a chunk of html that doesn't work but if I include it in the head by default and fetch it I could end up in the same state
  • m

    miniature-lizard-24702

    08/29/2022, 11:02 AM
    so I just found out about the is keyword and extending existing elements: e.g. ```` but safari refuses to implement it. Thanks so much apple. *sigh this seems perfect. Though I did find out I can just put a regular element inside my custom one since the browser will ignore the custom one if no javascript exists for it. This does mean that for more complex components that I want to have custom elements inside of as well is not possible (to my knowledge) to degrade/progressively enhance
  • m

    miniature-lizard-24702

    08/29/2022, 11:03 AM
    Does anyone know a good book / resource for progressive enhancement / degradation techniques?
  • f

    famous-area-94520

    08/29/2022, 11:04 AM
    https://ricostacruz.com/rsjs/ has some stuff that might be helpful
  • m

    miniature-lizard-24702

    08/29/2022, 11:06 AM
    This is interesting. Thanks for the link
  • f

    fancy-elephant-10660

    08/29/2022, 3:14 PM
    Is it possible on hx-trigger to add a class name to an other element except the button you click on. This in case of a next en prev button. Then some animation has to happen on a parent element. I see https://htmx.org/examples/animations/#settling in docs that this can be done on the element itself but I don't see a way to select some parent class or id and add something to it
  • f

    fancy-elephant-10660

    08/29/2022, 3:18 PM
    never mind it works already like that. Just didn't notice this out of the docs. Maybe the docs should show example with inner div and outer div in animation
  • f

    fancy-elephant-10660

    08/29/2022, 3:35 PM
    Do understand that you can set swap: hx-swap="outerHTML swap:1s" in CSS I do animate when there is something added. I run the animation 1s. Yet sometimes I see a flash between swapping. Don't understand how to set it correct?
  • m

    mysterious-toddler-20573

    08/29/2022, 3:38 PM
    What sort of animation are you doing?
  • m

    mysterious-toddler-20573

    08/29/2022, 3:38 PM
    gah, sorry, I have too much going on this morning and can't help, can you start a thread and I'll try to get to it this evening
1...799800801...1146Latest