@lrnwebcomponents/tab-list
Version:
Automated conversion of tab-list/
53 lines (43 loc) • 1.95 kB
HTML
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, user-scalable=yes">
<title>tab-list demo</title>
<script src="../../../node_modules/@lrnwebcomponents/deduping-fix/deduping-fix.js"></script>
<script type="module">
import "@polymer/iron-demo-helpers/demo-pages-shared-styles.js";
import "@polymer/iron-demo-helpers/demo-snippet.js";
import "../tab-list.js";
</script>
<!-- FIXME(polymer-modulizer):
These imperative modules that innerHTML your HTML are
a hacky way to be sure that any mixins in included style
modules are ready before any elements that reference them are
instantiated, otherwise the CSS @apply mixin polyfill won't be
able to expand the underlying CSS custom properties.
See: https://github.com/Polymer/polymer-modulizer/issues/154
-->
<script type="module">
var $_documentContainer = document.createElement('div');
$_documentContainer.setAttribute('style', 'display: none;');
$_documentContainer.innerHTML = `<style is="custom-style" include="demo-pages-shared-styles">
</style>`;
document.head.appendChild($_documentContainer);
</script>
</head>
<body>
<script type="module">
var $_documentContainer = document.createElement('div');
$_documentContainer.innerHTML = `<div class="vertical-section-container centered">
<h3>Basic tab-list demo</h3>
<demo-snippet>
<template>
<tab-list tabs='[{"link": "https://btopro.com", "label": "Awesome website"},{"link": "https://btopro.com", "label": "Awesome website"},{"link": "https://btopro.com", "label": "Awesome website"},{"link": "https://btopro.com", "label": "Awesome website"}]'></tab-list>
</template>
</demo-snippet>
</div>`;
document.body.appendChild($_documentContainer);
</script>
</body>
</html>