PolymerElements / paper-slider

A Material Design slider
47 stars 84 forks source link

API suggestion #32

Open jerbaroo opened 9 years ago

jerbaroo commented 9 years ago

Would be great to be able to bind a value to immediateValue, especially two-way binding. Currently need to do repeated calls to increment() and decrement() to change value. It just seems wrong to have to do a hundred calls to increment().

Now that would be nice.

jerbaroo commented 9 years ago

Another possibility would be a method to set the immediateValue such as: setImmediateValue(value)

blasten commented 9 years ago

@jbarischr is there any reason why you couldn't use the value property? e.g.

<paper-slider value="{{someValue}}"></paper-slider>

immediateValue is only intended for reading the value when the user is dragging the knob.

jerbaroo commented 9 years ago

It's not on the documentation here so I didn't know about it. Thanks! https://elements.polymer-project.org/elements/paper-slider

blasten commented 9 years ago

yes. that's a good call.