rbiggs / chocolatechip-ui-zepto

ChocolateChip-UI running on Zepto
http://www.chocolatechip-ui.com
37 stars 8 forks source link

Slider Control #1

Open ghost opened 12 years ago

ghost commented 12 years ago

A call to the UISlider function results in an error:-

TypeError: 'undefined' is not a function (evaluating '$.UISlider("#opacitySliderControl")')

I've searched the CHUI.js file and UISlider is not found?

rbiggs commented 12 years ago

Actually, the UISlider control is only in the regular ChocolateChip-UI version. When I did the jQuery port, I left it out since jQuery already has many really good plugins for range sliders. The Zepto version is a conversion of the jQuery port.

That said, if you needed a range slider you can simply use the HTML5 range input for the same purpose. I've been thinking of dumping the UISlider in favor of the native HTML range slider for a while. It's actually fairly easy to style the range input to look like whatever you need. It also automatically support range increases.

rbiggs commented 12 years ago

I put a page in the Wiki to explain how to use the HTML5 range input.