googlearchive / paper-slider

A slider à la Material Design
16 stars 18 forks source link

Display current value #45

Open phidias51 opened 9 years ago

phidias51 commented 9 years ago

Currently there's no way for a user to view the current value of the slider. The editable flag will let the user edit the value in a text field, but it would be useful if there was a way to display the value as you drag, without using the editable flag. This might be achieved by displaying a label to the left, right, above, or below the slider.

frankiefu commented 9 years ago

You can set pin on the paper-slider:

<paper-slider pin value="50"></paper-slider>

http://jsbin.com/hikepivaku/1/edit

FdezI commented 8 years ago

And... what about a always-show-pin flag?, I would like to show the pin all the time.

bkjohnson commented 7 years ago

Is there a reason that an always-show-pin flag doesn't exist? I know that the specs don't show the pin in the normal mode, but I don't see why that should prevent people from having the option to show it if they want to.

In one of my personal projects I've added an always-show-pin flag, and this is me discussing the design/necessity of such a change before I submit a pull request for it. Any thoughts?