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

    mysterious-toddler-20573

    08/29/2022, 4:40 PM
    OK, here is a REALLY IMPORTANT QUESTION: What should the name of this new morphing algorithm be? 1 - idiomorph (has 'id' in it, relatively meaningless) 2 - isomoroph (sounds cooler, might be confused w/ isomorphic js)
  • m

    mysterious-toddler-20573

    08/29/2022, 4:41 PM
    this is your opportunity to bike shed for the day
  • h

    hundreds-camera-24900

    08/29/2022, 5:37 PM
    MightyMorphin
  • s

    square-flower-1282

    08/29/2022, 5:41 PM
    Steve
  • e

    enough-holiday-71144

    08/29/2022, 8:33 PM
    idiomorb
  • a

    adamant-salesmen-67924

    08/29/2022, 10:56 PM
    How bout ShapeShiftr.....leave out the e cause it's cool.
  • a

    adamant-salesmen-67924

    08/29/2022, 10:56 PM
    Or mutantX to keep in the htmx theme.
  • l

    late-king-98305

    08/30/2022, 12:44 AM
    Morpheus?
  • l

    late-king-98305

    08/30/2022, 12:44 AM
    Or _morpheus
  • h

    hallowed-architect-39752

    08/30/2022, 4:36 AM
    ibemorphin
  • f

    fancy-elephant-10660

    08/30/2022, 7:02 AM
    I'm obvious doing it wrong: I'm using https://animate.style/ for animation I got a button click left click right with some content in the middle. On clicking button a hx-get request is made and it return the outerHTML of the container. I'm using hx-swap="outerHTML swap:1s" this adds a class to the outerHTML .htmx-swapping where I add in css animation: fadeOutLeft; duration: 1s; The new div that is loaded has animation fadeInLeft. As the .htmx-swapping class is not there present the content fadeInLeft on screen. What I see is, not al the time, is a fast blink of the content and then the animation starts. I played along with the timing with no effect. My current thinking is that it rather with how css is structured and less with HTMX. But I'm not sure. If you can give me a pointer what direction I should be looking... If possible I'll write short showcase for it to put on htmx docs 🙂 (I'm very dyslecitic so you need reread my writing)
  • m

    mammoth-family-48524

    08/30/2022, 9:24 AM
    Idiomorph sounds cool to me!
  • m

    mysterious-toddler-20573

    08/30/2022, 2:04 PM
    https://htmx.org/essays/template-fragments/
  • m

    mysterious-toddler-20573

    08/30/2022, 2:04 PM
    feedback please
  • b

    bumpy-cricket-7187

    08/30/2022, 2:18 PM
    hello everyone. Is it possible to perform
    oob swap
    on just value of
    <input type="range">
    ? I'm trying
    <input id="slider-1" hx-swap-oob="true" hx-select-oob="value" value="100">
    and it swaps entire
    <input>
    losing all other attributes except id and value
  • m

    mysterious-toddler-20573

    08/30/2022, 2:26 PM
    unfortunately not right now
  • s

    stocky-dentist-80693

    08/30/2022, 2:26 PM
    It's like
    hx-select
    but for template libraries.
  • m

    mysterious-toddler-20573

    08/30/2022, 2:26 PM
    very much!
  • m

    mysterious-toddler-20573

    08/30/2022, 2:26 PM
    best option right now is probably to trigger an event and update
  • m

    mysterious-toddler-20573

    08/30/2022, 2:26 PM
    😑
  • s

    stocky-dentist-80693

    08/30/2022, 2:27 PM
    I like the concept, would be nice to have it 👍
  • b

    bumpy-cricket-7187

    08/30/2022, 2:30 PM
    I'm using this in ws response, so not sure how to trigger an event in such case. But I think I came up with a hack, will try now.
  • b

    bumpy-cricket-7187

    08/30/2022, 2:35 PM
    I think you can add following project for
    dotnet
    https://github.com/soundaranbu/RazorTemplating I'm currently using it to render updated components and send over
    ws
    and it works quite well, although my project haven't grown big yet
  • a

    adamant-salesmen-67924

    08/30/2022, 2:58 PM
    if this is the same thing, is this the same concept as `{block some_name}`in PHP Latte or
    {% block some_name %}
    in PHP Twig?
  • m

    mysterious-toddler-20573

    08/30/2022, 2:58 PM
    it could be, I'd like to add those as examples
  • m

    mysterious-toddler-20573

    08/30/2022, 2:59 PM
    if they let you render only parts of the PHP file
  • a

    adamant-salesmen-67924

    08/30/2022, 2:59 PM
    https://twig.symfony.com/doc/3.x/functions/block.html
  • a

    adamant-salesmen-67924

    08/30/2022, 3:00 PM
    https://latte.nette.org/en/tags#toc-block
  • a

    adamant-salesmen-67924

    08/30/2022, 3:00 PM
    Hopefully those help build context for you
  • b

    bumpy-cricket-7187

    08/30/2022, 3:01 PM
    so I have added empty
    <div id="update"></div>
    alongside my slider and then I'm sending
    <div onshow='slider.value=10' id="update" hx-swap-oob="true"></div>
    , but it doesn't update slider value, so I'm thinking event is not triggered and also tried over event like
    onload
    , but no luck yet
1...800801802...1146Latest