Web Components At Work
A guide to building effective and maintainable web components
Table of Contents
- Introduction
-
Custom element fundamentals
-
Defining your element
Subclassing HTMLElement for fun and profit
-
The custom element lifecycle
Connecting, disconnecting, and reacting
-
Effective attributes
Configuration and communication
-
Using a base class
Eliminating element boilerplate
-
Defining your element
-
Structuring components
-
Behavioral components
Encapsulated events and manual markup
-
Shadow DOM
Who knows what lurks in the depths of the DOM?
-
Slots
Bringing shadow DOM back to the light
-
CSS and Theming
Variables, selectors, and hosts
-
Behavioral components
-
Platform design patterns
-
Inputs and outputs
Attributes, properties, events, and methods
-
Component microformats
DOM-specific languages
-
Visibility and observation
Out of sight, out of mind
-
Frameworks and integration
DOM-specific languages
-
Association and control
"for" the win
-
Inputs and outputs
- Case studies