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

Exposing focus dot index so that the user can know which dot was dragged #456

Closed
BhuvaneshShan opened this issue May 10, 2020 · 2 comments
Closed
Labels

Comments

@BhuvaneshShan
Copy link

Describe the feature

When a slider has multiple slider dots, I would like to know the slider dot index whose position was changed by the user.

Describe the solution you'd like

Currently v-on:change returns all the values with the updated slider dot value.
But the caller cannot know which value changed without storing and comparing with earlier dot values. This could help the caller know which position in the return values[] changed.

This could be achieved by either sending the 'focus dot index' when drag-start or drag-end is emitted.

@NightCatSama
Copy link
Owner

Thank you for your suggestion, it has been added in version v3.1.3.

https://nightcatsama.github.io/vue-slider-component/#/api/events

@BhuvaneshShan
Copy link
Author

Thank you NightCatSama! Very fast turn around time.

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

No branches or pull requests

2 participants