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

    square-oyster-36295

    10/15/2022, 12:05 AM
    You’re king @mysterious-toddler-20573 ! πŸ’ͺ Thank you very much! πŸ‘ I have a lot of work these days, but I will try to finish the implementation of the multi-swap extension in the next few days.
  • h

    hundreds-cartoon-20446

    10/15/2022, 12:15 PM
    I went down a rabbit hole and didn't like what I found. Any insight here would be very welcome: https://github.com/bigskysoftware/htmx/issues/1076#issuecomment-1279732194
    m
    • 2
    • 16
  • m

    mysterious-toddler-20573

    10/15/2022, 3:32 PM

    https://www.youtube.com/watch?v=3GObi93tjZIβ–Ύ

  • m

    mysterious-toddler-20573

    10/15/2022, 3:34 PM
    I went down a rabbit hole and didn t
  • m

    miniature-lizard-24702

    10/15/2022, 3:39 PM
    been looking forward to this talk
  • m

    miniature-lizard-24702

    10/15/2022, 3:39 PM
    thanks
  • m

    miniature-lizard-24702

    10/15/2022, 4:01 PM
    Also thanks to David for the talk
  • m

    mysterious-toddler-20573

    10/15/2022, 4:12 PM
    Yes, thank you @melodic-advantage-28381 !!! πŸ‘ πŸ‘ πŸ‘
  • m

    miniature-lizard-24702

    10/15/2022, 4:40 PM
    No excuses not to use htmx now, if there was before
  • d

    dazzling-dusk-82436

    10/15/2022, 5:11 PM
    Question to the server
    Copy code
    html
    <my-chart type="line-chart">
      <line-chart-dataset title="my-title" line-color="line-color" line-type="straight" >
         <data-point x="something" y="something"/>
         <data-point x="something" y="something"/>
         <data-point x="something" y="something"/>
         <data-point x="something" y="something"/>
         <data-point x="something" y="something"/>
         ....
      </line-chart-dataset>
    </my-chart>
    Does anyone know any custom HTML libraries that can sort of use soemething like this to produce charts?
  • d

    dazzling-dusk-82436

    10/15/2022, 5:12 PM
    im considering working on something like this using native webcomponents, since it should theoretically work, but no clue on the complexity
  • d

    dazzling-dusk-82436

    10/15/2022, 5:12 PM
    does anyone know if this has been done before?\
  • g

    gorgeous-airport-54386

    10/15/2022, 5:12 PM
    I haven't found any
  • g

    gorgeous-airport-54386

    10/15/2022, 5:12 PM
    A suggestion: use tables instead of
    <data-point>
  • g

    gorgeous-airport-54386

    10/15/2022, 5:13 PM
    (esp. since the self-closing tags you used are not valid)
  • d

    dazzling-dusk-82436

    10/15/2022, 5:13 PM
    interesting suggestion
  • d

    dazzling-dusk-82436

    10/15/2022, 5:13 PM
    what would that look like syntatically?
  • g

    gorgeous-airport-54386

    10/15/2022, 5:14 PM
    Copy code
    html
    <table is="my-chart" chart-type="line-chart">
      <tbody is="line-chart-dataset" title="my-title" line-color="line-color" line-type="straight" >
         <tr><td>something<td>something
         <tr><td>something<td>something
         <tr><td>something<td>something
         <tr><td>something<td>something
         <tr><td>something<td>something
         ....
      </tbody>
    </table>
  • g

    gorgeous-airport-54386

    10/15/2022, 5:15 PM
    Degrades gracefully to a plain table
  • g

    gorgeous-airport-54386

    10/15/2022, 5:15 PM
    And less verbose
  • d

    dazzling-dusk-82436

    10/15/2022, 5:15 PM
    true, but the goal is to have HTML that preserves chart semantics, instead of using dom manipulation on the front end to produce a chart from a table
  • d

    dazzling-dusk-82436

    10/15/2022, 5:16 PM
    the whole point of web components is to extend HTML with semantic, context-specific tags
  • d

    dazzling-dusk-82436

    10/15/2022, 5:16 PM
    tho i like the us of an ``is`` attribute
  • d

    dazzling-dusk-82436

    10/15/2022, 5:18 PM
    I was building some reports on the backend the other day, and all the charts were just PNGs rendered on the server side
  • d

    dazzling-dusk-82436

    10/15/2022, 5:18 PM
    felt really unrepresentative of data
  • g

    gorgeous-airport-54386

    10/15/2022, 5:26 PM
    web components do not have semantics. a table is the closest thing HTML has to a chart
  • g

    gorgeous-airport-54386

    10/15/2022, 5:27 PM
    since it also represents a series of data
  • g

    gorgeous-airport-54386

    10/15/2022, 5:28 PM
    the
    is
    attribute is https://developer.mozilla.org/en-US/docs/Web/Web_Components/Using_custom_elements#customized_built-in_elements
  • d

    dazzling-dusk-82436

    10/15/2022, 5:29 PM
    web components themselves is that they dont have semantics in the spec, but they repersent semantics
  • d

    dazzling-dusk-82436

    10/15/2022, 5:30 PM
    Copy code
    html
    <user-card>
      <user-name></user-name>
      <a href="user-profile"></a>
    </user-card>
    has great semantics compared to a long line of divs with classes\
1...857858859...1146Latest