File tree Expand file tree Collapse file tree
Writerside/topics/webview Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -96,15 +96,20 @@ class MyExampleComponent implements HasShadowDomInterface
9696{
9797 public function render(): string
9898 {
99- //
100- // Please note that using the short "<slot />" version
101- // instead of full "<slot ></slot >" may not work correctly.
102- //
10399 return '<b >This is <slot ></slot >!!!</b >';
104100 }
105101}
106102```
107103
104+ <warning >
105+ Slot tags (<code >< ; slot /> ; </code >) only work in Shadow DOM
106+ </warning >
107+
108+ <warning >
109+ Using the short <code >< ; slot /> ; </code > version instead of
110+ full <code >< ; slot> ;< ; /slot> ; </code > may not work correctly
111+ </warning >
112+
108113If you try to render the contents of a ` <slot /> ` without a Shadow DOM (using
109114` HasTemplateInterface ` ), no data will be received.
110115
You can’t perform that action at this time.
0 commit comments