Summary Files Commits Branches @commit @diff @stats
path: root / docs / src / contents / sliders.pug
diff options
context:
space:
mode:
Commit329fec6799945d878247d6d70f1a6ad26ade3f77 (patch)
Author
 Yan Zhu <picturepan2@hotmail.com>
2018-06-10 11:09:52 +0800
Committer
 GitHub <noreply@github.com>
2018-06-10 11:09:52 +0800
Files9225a7e69444531c04fba3f028b49c73c80c1d47 /docs/src/contents/sliders.pug
Spectre-Dark-Gruvbox-329fec6799945d878247d6d70f1a6ad26ade3f77.tar
Spectre-Dark-Gruvbox-329fec6799945d878247d6d70f1a6ad26ade3f77.tar.gz
Spectre-Dark-Gruvbox-329fec6799945d878247d6d70f1a6ad26ade3f77.zip
Parent7a6af53bca72b549b2cbf1948763348bd5b30dcd (diff)
Parent1c439a3201df5b559b124940c8fcc2702c345631 (diff)
Merge pull request #451 from picturepan2/0.5.2
0.5.2
1 files changed, 18 insertions, 0 deletions
-rw-r--r--docs/src/contents/sliders.pug18
diff --git a/docs/src/contents/sliders.pug b/docs/src/contents/sliders.pug
new file mode 100644
index 0000000..754833c
--- /dev/null
+++ b/docs/src/contents/sliders.pug
@@ -0,0 +1,18 @@
+p Sliders are for selecting values from ranges.
+p
+ | You can add the class #[code tooltip] to have tooltip labels.
+ | If no #[code data-tooltip] is set, the #[code value] will be used instead.
+
+.docs-demo.columns
+ .column.col-6.col-xs-12
+ input.slider.tooltip(type="range" min="0" max="100" value="50" oninput="this.setAttribute('value', this.value);")
+ .column.col-6.col-xs-12
+ input.slider(type="range" min="0" max="100" value="50" disabled="")
+
+pre.code(data-lang='HTML')
+ code
+ :highlight(lang="html")
+ <!-- Sliders -->
+ <input class="slider" type="range" min="0" max="100" value="50">
+ <!-- Sliders with tooltips -->
+ <input class="slider tooltip" type="range" min="0" max="100" value="50" oninput="this.setAttribute('value', this.value);"> \ No newline at end of file