PolymerElements / paper-progress

A Material Design progress
32 stars 43 forks source link

Start position of the progress bar #45

Closed jarrodek closed 8 years ago

jarrodek commented 8 years ago

This Fixes #44 by adding a start attribute to the element. When this attribute is set, then the progress bar will be moved to the right by corresponding value relative to max attribute.

jarrodek commented 8 years ago

As a use case - this is a screen from the app that will going to use this property: image

Chrome dev tools team may also use it in network panel.

keanulee commented 8 years ago

@jarrodek If that is your use case, with a bit of styling you can use value as the start of the highlighted area and secondaryProgress as the end. See http://jsbin.com/sigaqe/edit?html,output. Would that work for you (to avoid adding complexity to paper-progress)?

jarrodek commented 8 years ago

Generally it would. Output is the same. However adding an attribute would be more obvious for anyone - I guess. Maybe an example in demo page would help with it.

I agree on less complexity. On a second hand I don't think that the change is very complicated. But I'll leave it to you to decide.

Thanks for consideration.