From 58a11a7dec11bdfc1f43f210ffd52da3816a530c Mon Sep 17 00:00:00 2001
From: Richard Worth Your age: The default slider has a single handle and is horizontal. The handle can be moved with the mouse or by using the arrow keys and has full ARIA attributes for accessibility. The current value for the slider can be set with the value option:
+The default slider has a single handle and is horizontal.
+The handle can be moved with the mouse or by using the arrow keys and has full ARIA attributes for accessibility.
+ inside
. some other minor updates
---
demos/slider/default.html | 11 +++++------
demos/slider/multiple_vertical.html | 5 ++++-
demos/slider/range.html | 5 ++---
demos/slider/range_vertical.html | 34 +++++++++++++++++++++++++---------
demos/slider/rangemax.html | 26 +++++++++++++++++---------
demos/slider/rangemin.html | 28 ++++++++++++++++++----------
demos/slider/slider_vertical.html | 24 ++++++++++++++++++------
demos/slider/steps.html | 27 ++++++++++++++++++++-------
8 files changed, 109 insertions(+), 51 deletions(-)
(limited to 'demos/slider')
diff --git a/demos/slider/default.html b/demos/slider/default.html
index 8d8096a9d..28fd1f59b 100644
--- a/demos/slider/default.html
+++ b/demos/slider/default.html
@@ -9,9 +9,7 @@
@@ -19,15 +17,16 @@
value: 37
+
This example shows how easy it is to add multiple sliders to a page, each with their own options, to make a UI for a music player.
++This example shows how easy it is to add multiple sliders to a page, each with their own options, to make a UI for a music player. +
Example of a range slider that had two drag handles and a filled bar that connects the two handles to indicate that the values between them are selected. This is created by setting the range option:
--range: true -+
range: true
+
Target sales goal (Millions):
++ + +
+This is an example of a vertical range slider created by setting the orientation to vertical:
--orientation: "vertical", ++ ++This is an example of a vertical range slider created by setting the orientation to vertical: +
+ +-orientation: "vertical", range: true, values: [17, 67] -
It's important to note that a vertical slider needs a height set. You can do this via .height() or by setting the height through CSS.
+
+It's important to note that a vertical slider needs a height set.
+You can do this via .height()
or by setting the height through CSS.
+
+This demo also shows how the current slider value can be used to populate a standard form input that can also be used for user feedback. +
Minimum number of bedrooms:
+
+
+An example of a range slider that has the filled bar hard-coded to the maximum value plus a single slider. +This makes it clear that selecting a value will also include all values above the selection. +This is a range option type: +
-range: "max"
+
-An example of a range slider that has the filled bar hard-coded to the maximum value plus a single slider. This makes it clear that selecting a value will also include all values above the selection. This is a range option type:
--range: "max", --
This demo also shows how the current slider value can be used to populate a standard form input that can also be used for user feedback.
++This demo also shows how the current slider value can be used to populate a standard form input that can also be used for user feedback. +
Maximum price:
++ + +
++An example of a range slider that has the filled bar hard-coded to the minimum value plus a single slider. +This makes it clear that selecting a value will also include all values below the selection. +This is a range option type: +
-range: "min"
+
-An example of a range slider that has the filled bar hard-coded to the minimum value plus a single slider. This makes it clear that selecting a value will also include all values below the selection. This is a range option type:
--range: "min", --
This demo also shows how the current slider value can be used to populate a standard form input that can also be used for user feedback.
++This demo also shows how the current slider value can be used to populate a standard form input that can also be used for user feedback. +