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
Set the date programmatically? #26
Comments
@nocquidant Thank you for using this element. Hope you find it useful. The difference of To read date, you need to:
To input date, you need to:
To input date and read the output, just combine both:
|
@nocquidant Hope it helped. Feel free to ask or open issue you find anything blurry from the given docs. |
I still cannot get it work. According to me, the issue is in I had to do the following change in order to use it in french (see comment):
For me, the format should be checked here, but not the locale (I want the message in french, but I still use the format yyyy/mm/dd). |
@nocquidant Did you pass in a short date (2016/07/04) or a long date (Mon, Jul 4, 2016) to the |
I pass a short date. Le lun. 4 juil. 2016 à 14:48, Rong Sen Ng notifications@github.com a
|
@nocquidant If the value received by the |
OK, I made a "simple app" here: https://github.com/nocquidant/polymerex, based on the Polymer drawer template. In order not to have the datepicker dialog behind the left navigation menu on small devices (see PolymerElements/iron-overlay-behavior#155), I use the following trick: If you click on the button on "View One", the date-picker must show "2016/07/01" whatever the previous selected value was. How can I achieve this? Thanks |
PS. Most of the code is in: |
@nocquidant It's great! I'll look into it and get back to you soon. |
@nocquidant The issue is confirmed and working on a fix. There are also some problem in your code provided. I will post a proper solution to your case or maybe file a PR to your Github repo so that you know where should be changed. Stay tuned. 😄 |
Many thanks. It is fine now. |
Thank you for your component.
I can't manage to set the date of the app-datepicker programmatically (I must say I'm not sure of the differences between
date
andinputDate
).Here is my code.
Thanks
--nick
The text was updated successfully, but these errors were encountered: