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

ionRangeSlider data.step unreadable #770

Open
Mijsoot opened this issue Dec 10, 2021 · 3 comments
Open

ionRangeSlider data.step unreadable #770

Mijsoot opened this issue Dec 10, 2021 · 3 comments
Assignees
Labels
Help wanted Person asking for help

Comments

@Mijsoot
Copy link

Mijsoot commented Dec 10, 2021

Hi,
I don't know it's normal or not but we can't access to the data.step value.
Do i make a mistake anywhere ?

I made a CodePen to try here

Thanks in advance for your help

@Mijsoot Mijsoot added the Help wanted Person asking for help label Dec 10, 2021
@Mijsoot
Copy link
Author

Mijsoot commented Dec 10, 2021

Excuse me DENIS,
first i want to thank you for this beautifull plugin ! I use it for the fist time but i found it excellent !

But don't you think it can be a bug or a forgetfulness? Because your API documentation does not specify anything special about STEP ?

Thanks in advance for your response

@IonDen
Copy link
Owner

IonDen commented Jan 5, 2022

Hi @Mijsoot. Step is a param you set from outside, that is why it is not visible in sliders telemetry.

Idea is this. If you need it - you could save it to variable and reuse later.
Example:

let myStep = 100;
$(...).ionRangeSlider({
  step: myStep
});

// change step

myStep = 200;
sliderInstance.update({
  step: myStep
});

// in this case you will always have access to step as an external variable.

@Mijsoot
Copy link
Author

Mijsoot commented Jan 7, 2022

Hi @IonDen , thank you for your response.
Effectively i had found this, you can see it in my before example.
But, i thunk that "data-step" could be readle like all others "data-...".

Thanks again for your response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Help wanted Person asking for help
Projects
None yet
Development

No branches or pull requests

2 participants