-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
34aa074
commit de7b8ca
Showing
4 changed files
with
18 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,10 +27,10 @@ <h1> slotted-element demo </h1> | |
</slotted-element> | ||
</html-demo-element> | ||
|
||
<html-demo-element> | ||
<html-demo-element title="Content would be placed inside of 'loaded' slot "> | ||
<slotted-element src="embedded.html"> | ||
<fieldset> | ||
<legend> Content would be placed inside </legend> | ||
<legend> Slots located in wrapper </legend> | ||
<p slot="loading" hidden> Loading... ⏳ </p> | ||
<p slot="error" hidden> What could be wrong? </p> | ||
<p slot="loaded" hidden> Replaced with content of <b>embedded.html</b> </p> | ||
|
@@ -47,13 +47,8 @@ <h1> slotted-element demo </h1> | |
</slotted-element> | ||
</html-demo-element> | ||
|
||
<html-demo-element> | ||
<slotted-element src="dwarfs.json"> | ||
<fieldset> | ||
<legend> array <b>dwarfs.json</b> as table </legend> | ||
<p slot="loaded" hidden> </p> | ||
</fieldset> | ||
</slotted-element> | ||
<html-demo-element title="array dwarfs.json as table"> | ||
<slotted-element src="dwarfs.json"></slotted-element> | ||
</html-demo-element> | ||
|
||
<script type="module" src="https://unpkg.com/[email protected]/html-demo-element.js"></script> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,11 +2,11 @@ | |
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>render from json - FetchElement</title> | ||
<title>render table from json - FetchElement</title> | ||
<script type="module" src="https://unpkg.com/[email protected]/html-demo-element.js"></script> | ||
</head> | ||
<body> | ||
<h1> slotted-element demo </h1> | ||
<h1> fetch-element render from JSON demo </h1> | ||
<a href="https://github.com/sashafirsov/slotted-element"><img src="https://cdnjs.cloudflare.com/ajax/libs/octicons/8.5.0/svg/mark-github.svg">git</a> | | ||
<a href="index.html"> slotted-element demo </a> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters