We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As the documentation of noUISlider: https://refreshless.com/nouislider/slider-options/#section-handle-attributes
noUiSlider.create(slider, { start: [10, 120], handleAttributes: [ { 'aria-label': 'lower' }, { 'aria-label': 'upper' }, ], range: { 'min': 0, 'max': 100 } });
It should be possible to assign different labels to the handles separately by passing a array
array
But recently the parameter aria of vueform slider is not supporting. Where if we take a look on the source code:
aria
if ((ariaLabelledby && ariaLabelledby.value) || (aria && Object.keys(aria.value).length)) { let handles = Array.isArray(value.value) ? value.value : [value.value] defaultOptions.handleAttributes = handles.map(h => (Object.assign({}, aria.value, ariaLabelledby && ariaLabelledby.value ? { 'aria-labelledby': ariaLabelledby.value, }: {}))) }
aria is always passed as an object to defaultOptions.handleAttributes, which make such action becoming not possible.
object
defaultOptions.handleAttributes
Although developers can also try passing slider option with options parameter, it is not possible in this case. While with the watcher:
options
watch(options, refresh, { immediate: false, deep: true })
Making the slider refreshing everytime when user dragging the controls and becoming unusable.
The text was updated successfully, but these errors were encountered:
ariaLabelledby
Seems this repo is not being maintained.. For anyone else encountering same problem, you may try my version which applied #89 https://www.npmjs.com/package/@oliver139/vueform-slider
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
As the documentation of noUISlider:
https://refreshless.com/nouislider/slider-options/#section-handle-attributes
It should be possible to assign different labels to the handles separately by passing a
array
But recently the parameter
aria
of vueform slider is not supporting.Where if we take a look on the source code:
aria
is always passed as anobject
todefaultOptions.handleAttributes
, which make such action becoming not possible.Although developers can also try passing slider option with
options
parameter, it is not possible in this case.While with the watcher:
Making the slider refreshing everytime when user dragging the controls and becoming unusable.
Possible solution:
aria
to accept bothobject
andarray
The text was updated successfully, but these errors were encountered: