From 03d25bcf421ad32c9b904a685e78764c392292b6 Mon Sep 17 00:00:00 2001 From: Yan Zhu Date: Sat, 4 Nov 2017 11:45:08 +0800 Subject: Add new Sliders example #328 --- docs/experimentals.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'docs/experimentals.html') diff --git a/docs/experimentals.html b/docs/experimentals.html index 94223b4..24cc181 100644 --- a/docs/experimentals.html +++ b/docs/experimentals.html @@ -870,10 +870,11 @@

Sliders

Sliders are for selecting values from ranges.

+

You can add the class tooltip to have tooltip labels. If no data-tooltip is set, the value will be used instead.

- +
@@ -881,7 +882,10 @@
-
<input class="slider" type="range" min="0" max="100" value="50" />
+
<!-- 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);">
 
-- cgit v1.3.1-26-gb76a