Skip to content

Commit 4272bb9

Browse files
committed
docs(actions): document ShadowRoot capabilities
1 parent b8be2ea commit 4272bb9

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

docs/_guide/actions.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,10 @@ class HoverCard extenda HTMLElement {
138138
}
139139
```
140140

141+
### Targets and "ShadowRoots"
142+
143+
Custom elements can create encapsulated DOM trees known as "Shadow" DOM. Catalyst actions support Shadow DOM by traversing the `shadowRoot`, if present, and also automatically watching shadowRoots for changes; auto-binding new elements as they are added.
144+
141145
### What about without Decorators?
142146

143147
If you're using decorators, then the `@controller` decorator automatically handles binding of actions to a Controller.

0 commit comments

Comments
 (0)