isu-elements
Version:
Polymer components for building web apps.
76 lines (68 loc) • 2.91 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>progress 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-progress'
</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-progress demo</h3>
<demo-snippet>
<template>
<custom-style>
<style>
</style>
</custom-style>
<isu-progress percentage="50" show-text></isu-progress>
<br>
<isu-progress percentage="100" show-text status="success"></isu-progress>
<br>
<isu-progress percentage="100" show-text status="warning"></isu-progress>
<br>
<isu-progress percentage="50" show-text status="exception"></isu-progress>
<br>
<isu-progress stroke-width="24" percentage="100" show-text status="success"></isu-progress>
<br>
<isu-progress percentage="20" color="#000" show-text></isu-progress>
<br>
<isu-progress type="circle" percentage="0" show-text></isu-progress>
<isu-progress type="circle" percentage="25" show-text></isu-progress>
<isu-progress type="circle" percentage="100" status="success" show-text></isu-progress>
<isu-progress type="circle" percentage="70" status="warning" show-text></isu-progress>
<isu-progress type="circle" percentage="50" status="exception" show-text></isu-progress>
<br>
<isu-progress type="dashboard" percentage="0" show-text></isu-progress>
<isu-progress type="dashboard" percentage="25" show-text></isu-progress>
<isu-progress type="dashboard" percentage="100" status="success" show-text></isu-progress>
<isu-progress type="dashboard" percentage="70" status="warning" show-text></isu-progress>
<isu-progress type="dashboard" percentage="50" status="exception" show-text></isu-progress>
</template>
</demo-snippet>
</div>
</body>
</html>