Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Let’s start the Web Components

kkeeth
October 30, 2018

Let’s start the Web Components

kkeeth

October 30, 2018
Tweet

More Decks by kkeeth

Other Decks in Programming

Transcript

  1. About me const my_info = { Workplace: ‘Yumemi Inc’, Community:

    ‘Riot.js, Ionic, DIST’, Favorites: ‘npm k-kuwahara ’, PokemonGO: ‘TL38’ }
  2. What is “Web Components” ? How to program Custom Elements

    Shadow DOM ES Modules Practical usage Agenda
  3. No libraries required ❗ No packages required ❗ No modules

    required ❗ It doesn’t depend on tools or libraries
  4. ɹ Header Footer Navigation Bars (13 menus) Margen Sub Condition1

    (list) Sub Condition2 (list) Main Condition2 (list) Main Condition3 (list) Main Condition1 (list)
  5. ɹ Header Footer Navigation Bars (13 menus) Margen Sub Condition1

    (list) Sub Condition2 (list) Main Condition2 (list) Main Condition3 (list) Main Condition1 (list)
  6. ɹ Header Footer Navigation Bars (13 menus) Margen Sub Condition1

    (list) Sub Condition2 (list) Main Condition2 (list) Main Condition3 (list) Main Condition1 (list) Scope works (so-called encapsulation)
  7. Custom Elements is a function for creating your own custom

    HTML elements. Custom Elements can have its own script action and CSS styling. This is part of web components, but you can use it alone. Custom Elements see also: https://developer.mozilla.org/ja/docs/Web/Web_Components/Custom_Elements
  8. The ShadowRoot interface of the Shadow DOM API is the

    root node of a DOM subtree that is rendered separately from a document's main DOM tree. Shadow DOM see also: https://developer.mozilla.org/ja/docs/Web/API/ShadowRoot