Collaborne / paper-date-picker-item

A Material Design item that shows a date and opens a date picker dialog on tap (Polymer)
https://www.webcomponents.org/element/Collaborne/paper-date-picker-item
Apache License 2.0
24 stars 13 forks source link

Pass paper-date-picker options through #6

Open mh166 opened 8 years ago

mh166 commented 8 years ago

It should be possible to pass options directly to the <paper-date-picker> element within the dialog. The only colliding property is date, which is no problem as it is bound to the date picker anyways, for obvious reasons. :wink:

So for example the following should change the <paper-date-picker>'s locale:

<paper-date-picker-item placeholder="Datum auswählen" locale="de"></paper-date-picker-item>

This would be of great help, not only in order for l10n to be applied, but also to adjust any of the numerous properties available to the date picker.

ronnyroeller commented 8 years ago

Good idea, @mh166. Feel free to provide a PR for the properties that you would like to be passed through.

ankon commented 7 years ago

At least locale is now available: https://github.com/Collaborne/paper-date-picker-item/issues/9