Skip to content

Commit 729c56f

Browse files
save file
1 parent 3f397ca commit 729c56f

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

html-components/html-components.html

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@
6262
mod.base.add({ext,$,datatype,keydown,menu,menumod,ace});
6363

6464

65-
await mod.auto('demo-example-1');
65+
await mod.auto('demo-example-1','demo-example-2-we','demo-example-2-sh');
6666

6767

6868
hdr = mod['html-components-hdr'];
@@ -508,8 +508,29 @@ <h3>
508508
</div>
509509

510510

511+
<section>
512+
<p>
513+
It is entirely possible to have components the do not adhere to the above standard practices
514+
</p>
515+
<web-editor id=demo-example-2-we component fullsize mode=html src='https://libs.ext-code.com/html/demo/demo-example-2/demo-example-2.html'></web-editor>
516+
<p>
517+
and the code to include it
518+
</p>
519+
<snippet-html id=demo-example-2-sh component src='https://libs.ext-code.com/html/demo/demo-example-2/examples/demo-example.html'></snippet-html>
520+
<p>
521+
Here we have to give the component.js library a chance to load and build the component, mod.stack is a list of functions to
522+
when the component.js library has finished initialising.
523+
</p>
524+
</section>
511525

512-
<div>
526+
527+
528+
<br>
529+
<br>
530+
531+
<hr>
532+
533+
<div style='margin-top:100px'>
513534
<p>
514535
The component library just needs to be included as a script tag, it exposes a global property mod,
515536
it runs on window.onload, it has a loading stack that allows initialisation to be delayed until

0 commit comments

Comments
 (0)