-
Notifications
You must be signed in to change notification settings - Fork 39
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
Explicitly Document how to bind:values, and why it's an Array #12
Comments
As for your specific problem, please see issue #11 where I described the solution, and also here's the code working; Talking about a single input |
yeah, I ended up doing this instead, which also worked for me:
...maybe just add an example in the docs for binding to a value in svelte so as to clear up the confusion? Otherwsise it's not that hard, just didn't know how :-) Anyway, thanks again! XD |
I'll take your suggestion for docs improvement. :) Actually I do note about binding here; https://simeydotme.github.io/svelte-range-slider-pips/#values and demonstrate it here; https://simeydotme.github.io/svelte-range-slider-pips/#min--max ... but I guess I was mistakenly thinking people would read all the docs in order like a book, hah, so I guess being more explicit about binding values and why it's an array input is a nice addition for the docs. |
yeah, I read that part, then when I got into binding in svelte I got new issues for me that I did not know how to deal with, so yes, it would be great to add a little bit more to that section. It's also quite possible that people who are using this component are doing so with svelte, so a little example like you have demonstrated in the REPL for working with svelte bindings might be nice. It certainly helped me :-) |
currently I am trying to:
...but I get the following error:
...and I honestly only need one value for my use cases (volume slider and timeline, which you have expressed reservations about :-)
so, would it be possible to add a
value
prop that only takes one number? or is there a way for binding to work with thevalues
prop?REPL for reference:
https://svelte.dev/repl/9e6d515b510143e4b1b8a7a01940f0db?version=3.29.6
the issue is in the
Player.svelte
file on line 59.Thanks a bunch!
The text was updated successfully, but these errors were encountered: