-
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.
Load multiple versions of an Elix component on the same page.
- Loading branch information
1 parent
6c4f5fa
commit 6158240
Showing
4 changed files
with
66 additions
and
0 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 |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules |
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 |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
|
||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width,initial-scale=1"> | ||
<title>Multiple versions of the same Elix component on a single page</title> | ||
|
||
<!-- Elix 7.0 component, which auto-registered all components with "elix-" prefix. --> | ||
<script type="module" src="node_modules/elix/src/DateComboBox.js"></script> | ||
|
||
<!-- Elix 8.0 component that does not auto-register itself. --> | ||
<script type="module"> | ||
import { default as DateComboBox2 } from './node_modules/elix2/src/DateComboBox.js'; | ||
customElements.define('date-combo-box-2', DateComboBox2); | ||
</script> | ||
|
||
<style> | ||
body { | ||
font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; | ||
font-size: 15px; | ||
margin: 0; | ||
padding: 25px; | ||
} | ||
</style> | ||
|
||
</head> | ||
|
||
<body> | ||
<p> | ||
This page uses Elix 7.0 and Elix 8.0 components side-by-side. | ||
</p> | ||
<p> | ||
Elix 7.0 DateComboBox: | ||
<elix-date-combo-box></elix-date-combo-box> | ||
</p> | ||
<p> | ||
Elix 8.0 DateComboBox: | ||
<date-combo-box-2></date-combo-box-2> | ||
</p> | ||
</body> | ||
|
||
</html> |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"name": "multiple-version-example", | ||
"dependencies": { | ||
"elix": "github:elix/elix#master", | ||
"elix2": "github:elix/elix#define" | ||
} | ||
} |