Web Component Properties and Attributes

Поделиться
HTML-код
  • Опубликовано: 3 дек 2024

Комментарии • 13

  • @SonnyDarvish
    @SonnyDarvish 4 месяца назад +1

    Thanks for all of these tutorials. I'm going through all of them as I build our design system with WC. One feedback for your production, try to isolate the microphone from the desk and the keyboard. Any high quality headphones are going to be quite bassy.

  • @nro337
    @nro337 Год назад

    Happy New Year! Thanks for the video

  • @srinivasaraoyp3640
    @srinivasaraoyp3640 Год назад

    Hi Steve wish you happy new year. I always find your video demos very interesting.

  • @ofeenee
    @ofeenee Год назад

    Happy new year’s!! ❤🎉

  • @aram5642
    @aram5642 Год назад

    Would be cool to see a video about exporting and consuming such a webcomponent in a framework, esp when it comes to I/O

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  Год назад

      This is part of a playlist with lots of other info about web components - ruclips.net/p/PLyuRouwmQCjnENQk6NJlckZRXOfQP0x5B

  • @bennettsunder7376
    @bennettsunder7376 21 день назад

    cute doggy

  • @shahinza
    @shahinza Год назад

    Thank you!

  • @n_fan329
    @n_fan329 11 месяцев назад

    Hi Professor, on 10:51 & line 69 i tried p.classList.add('character') and it works, my question is : when you are using p.className is it the same we 're using JSX within React components ? even though in this block of code its plain JS , Would u please explain ...bit confused in here ?

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  11 месяцев назад

      React components are not the same as custom web components. p.className is just a basic JS property for targetting the name of the CSS class.

  • @AyushJaiswal-t9m
    @AyushJaiswal-t9m 5 месяцев назад

    Hi, can we pass object as attribute in web components

    • @SteveGriffith-Prof3ssorSt3v3
      @SteveGriffith-Prof3ssorSt3v3  5 месяцев назад

      If you mean through the attributes in the HTML, then no. Only strings can go through HTML attributes.

    • @AyushJaiswal-t9m
      @AyushJaiswal-t9m 5 месяцев назад

      @@SteveGriffith-Prof3ssorSt3v3 one way I can do is by serialization through Json.stringyfy and later I parse it but I don't know how framework like Vue or library like Lit does that