Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue 43: Dynamically added inputs do not take configuration from data-slider-* attributes #45

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

nedwidek
Copy link

@nedwidek nedwidek commented Nov 3, 2013

Moved logic from visitor method into SimpleSlider.loadDataSettings().

This method is called when an input is turned into a simple slider with ("#myinput").simpleSlider().

If the user passes in a settings object, those values will be used and the data-slider-* values will be ignored.

…x slider

values under the slider.

Added demos.

Themed with classes: scale, min-scale, and max-scale.
Link: loopj#43

Users were confused by documentation showing data-slider-* attributes as being
the way to configure the slider.  data-slider-* options were being processed by
a visitor function that for each input created a settings object and invoked
SimpleSlider with those settings.

Moved the logic that created a settings object to
SimpleSlider.loadDataSettings(). If SimpleSlider() is called this method will
be invoked to create the settings from the data-slider-* attributes. If
SimpleSlider(settings) is called it will not (settings will come from the
object being passed).
@skoskie
Copy link

skoskie commented Nov 25, 2013

Thanks for fixing. Huge time saver.

@kdimatteo
Copy link

👍 this is a great fix, can we get the merge?

@diosney
Copy link

diosney commented May 28, 2014

👍

kviktor added a commit to BME-IK/jquery-simple-slider that referenced this pull request Sep 16, 2014
- merge pull request 45 from the original repo
  (Issue 43: Dynamically added inputs do not take configuration from
  data-slider-* attributes loopj#45)
- add a disabled attr to the slider
- remove auto init of sliders when dom is ready
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants