-
Notifications
You must be signed in to change notification settings - Fork 1
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
Setting slider value programatically #15
Comments
@BartaG512 Can you elaborate a bit more on this? It would be great if you can provide some code examples too. |
My use case that I have to update the slider's value from websocket updates.
Then i updated sliderValue on the controller. To achieve updating i had to extend the slider component, and use moveToPercentage method (in my example the min, max range is 0-100 so it is not a problem to use moveToPercentage method)
Template:
This works but i guess observer is not the optimal solution for this. I think the slider component should be changed that way, if you set the |
@BartaG512 Agreed. The component with its current implementation assumes that the value will be once passed and further changed only by the component itself and not from the outside. I believe you are updating the value of your component from outside ( a new value from your web socket connection ). We will add this capability sooner. While we do that, your extended slider is a good workaround. |
This is really easy with Octane. Use |
Thanks @BryanCrotaz for suggesting. 👍 |
I would like to set the slider value programatically. Can i do this rightnow?
The text was updated successfully, but these errors were encountered: