leongersen / noUiSlider

noUiSlider is a lightweight, ARIA-accessible JavaScript range slider with multi-touch and keyboard support. It is fully GPU animated: no reflows, so it is fast; even on older devices. It also fits wonderfully in responsive designs and has no dependencies.
https://refreshless.com/nouislider/
MIT License
5.66k stars 659 forks source link

Get the scope_Values #1139

Closed s-cork closed 3 years ago

s-cork commented 3 years ago

Can we have a method to expose the unencoded values?

Maybe just an argument to the get method

// Get the slider value.   
function valueGet(unencoded=false): GetResult {
    if (unencoded) {
        return scope_Values.length === 0 ? scope_Values[0] : scope_Values.slice(0);
    }
    ...
}

The only api I can see to get these values is as part of the event handlers system.

leongersen commented 3 years ago

Yes, this sounds like a good addition. I'd be open to a pull request :)

github-actions[bot] commented 2 years ago

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.