Rhizosphere

Links

read through the Code
try the Prototype
Home‎ > ‎Announcements‎ > ‎

Sliders now support Scale mapping

posted ‎‎25 Nov 2008 20:02‎‎ by Riccardo Govoni
The latest Rhizosphere code now supports sliders with custom scale mapping!

So far Rhizosphere used the default sliders provided by the JQuery UI framework. These works really good for integer scales, but do not handle properly non-integer scales, such as small decimal scales.

Changeset 93 introduces the support for custom mappers that can be applied on top of a slider. These mappers take care of converting values from your model scale to a scale suitable for a UI slider and viceversa.

It is now really easy to create sliders that span over data ranges that couldn't be handled before. The image shows you a couple of sliders that cover a range of few decimal values, with a granularity of .01 and 0.001.

Since the data-mapping is completely type-agnostic, it is easy to create sliders whose range is not even numeric, such as date sliders, or alphabet sliders! I will soon post an example that demonstrates this!

Attachments (1)

Comments (1)

Riccardo Govoni - 31 Dec 2008 03:59

And starting from Changeset 99 and 107, you can now have logarithmic sliders, and human labels for slider ranges, so for example a number like 17643233 would appear as 17.6M ! Stay tuned for some samples and screenshots of this feature.