isu-elements
Version:
Polymer components for building web apps.
60 lines (52 loc) • 1.87 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>slider demo</title>
<script type="module">
import '../../node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js';
import '../../node_modules/@polymer/iron-demo-helpers/demo-pages-shared-styles.js';
import '../../node_modules/@polymer/iron-demo-helpers/demo-snippet.js';
import '../../node_modules/@polymer/iron-icons/iron-icons.js';
import '../../node_modules/@polymer/paper-styles/color.js';
import '../../isu-slider'
</script>
<script type="module">
const $_documentContainer = document.createElement('template');
$_documentContainer.innerHTML = `<custom-style>
<style is="custom-style" include="demo-pages-shared-styles">
.centered {
min-width: 800px;
}
demo-snippet {
--demo-snippet-code: {
max-height: 500px;
}
}
</style>
</custom-style>`;
document.body.appendChild($_documentContainer.content);
</script>
</head>
<body>
<div class="vertical-section-container centered">
<h3>isu-slider demo</h3>
<demo-snippet>
<template>
<custom-style>
<style>
</style>
</custom-style>
<isu-slider show-tooltip></isu-slider>
<isu-slider value="50" show-tooltip></isu-slider>
<isu-slider></isu-slider>
<isu-slider value="70" disabled></isu-slider>
<isu-slider value="50" step="10" show-tooltip min="-10" max="100"></isu-slider>
<isu-slider show-tooltip show-input></isu-slider>
<isu-slider vertical height="200px" value="50" show-input show-tooltip></isu-slider>
</template>
</demo-snippet>
</div>
</body>
</html>