Declarative Shadow DOM - Lit & Astro

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ธ.ค. 2024

ความคิดเห็น • 6

  • @zebcode
    @zebcode 4 หลายเดือนก่อน

    Are there any CSS considerations when using a shadow dom?

  • @davidmaxwaterman
    @davidmaxwaterman ปีที่แล้ว +1

    I wonder why you didn't press the button once it had been hydrated. You showed that it had its shadow dom filled out, but not that the javascript was working (eg the button event handler).

    • @Ashotofcode
      @Ashotofcode  ปีที่แล้ว

      D'oh might have missed that - suffice to say though it does work 🙂

    • @LordFunzo
      @LordFunzo ปีที่แล้ว +1

      @@Ashotofcode It won't work if JS is disabled.

  • @felixtoth
    @felixtoth ปีที่แล้ว

    What's with komplex data that had to be rendered, say you pass as attribute a string, or even a JSON that has to be parsed and render let's say a list of links

  • @porco85
    @porco85 ปีที่แล้ว

    Astro can use DSD without Lit?
    e.g.1. register tag from astro file to DSD
    e.g.2. reuse this tag using js top of astro file
    e.g.3. reuse this tag as a component in astro file like ""