Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Add step support to sliders #620

Closed
wants to merge 1 commit into from
Closed

Add step support to sliders #620

wants to merge 1 commit into from

Conversation

a2ikm
Copy link

@a2ikm a2ikm commented Dec 6, 2010

I tried to add step support to sliders.

With this commit, we can use "step" attribute and "fixed" attribute.
"step" attribute specifies steps of the slider, and "fixed" does the number of decimal places.

I think "fixed" is not a valid attribute in HTML5, but I have no idea.
I'll be happy when some one makes it better.

Thanks.

@toddparker
Copy link
Contributor

We'll take a look, thanks!

@fedeisas
Copy link

I know this is not the right place to ask, but I didn't found any group to discuss jQuery Mobile. Is there any way to use onChange on sliders? I want to trigger an Ajax request every time the value of the slide changes... Any ideas?

@johnbender
Copy link
Contributor

a2ikm,

I had originally built the controls to allow for data-step's use with the keyboard bindings but clearly the step attribute is the way to go here. A couple notes:

  1. We want to emulate the functionality from jquery ui by using whole integer values.
  2. I was unable to get this working in the latest chrome

@johnbender
Copy link
Contributor

a2ikm,

I'm going to move this to the feature request backlog in the wiki. We'll come back to it after the beta/release. Thanks again for taking the time to contribute and this is definitely necessary.

This pull request was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants