Peter Damoc
2016-09-23 12:27:42 UTC
I've been trying to get this to work but I don't have enough knowledge.
The main problem I'm facing seams to be one of setup/deployment.
Can someone help with a simple example that uses paper-date-picker
https://customelements.io/bendavis78/paper-date-picker/
I'm looking for the following:
- a file structure/setup for the project that allows development of an Elm
program using paper-date-picker where one can see the same output in both
Chrome and Firefox
- a way capture a notification for the date change
less important but useful:
- a way to create some kind of a deliverable (something that one can put on
some webhosting and have it work)
Regarding the event from the component I've found
https://github.com/kevinlebrun/elm-polymer
but I was unable to transfer the knowledge shown there for how to listen to
changes inside the web component.
Setting the date value with attribute (counter-polymer-inside-elm) actually
proved to be very easy and it worked without needing the port.
Getting informed about the date change happening inside the widget however,
did not work.
I tried replacing "value" with "date" in the event attribute and the json
decoder (replacing Json.int with Json.string) but... it did not work.
Here are the files I have so far:
https://gist.github.com/pdamoc/48c6f7dd2f7fec44bdd3262f269f635c
The main problem I'm facing seams to be one of setup/deployment.
Can someone help with a simple example that uses paper-date-picker
https://customelements.io/bendavis78/paper-date-picker/
I'm looking for the following:
- a file structure/setup for the project that allows development of an Elm
program using paper-date-picker where one can see the same output in both
Chrome and Firefox
- a way capture a notification for the date change
less important but useful:
- a way to create some kind of a deliverable (something that one can put on
some webhosting and have it work)
Regarding the event from the component I've found
https://github.com/kevinlebrun/elm-polymer
but I was unable to transfer the knowledge shown there for how to listen to
changes inside the web component.
Setting the date value with attribute (counter-polymer-inside-elm) actually
proved to be very easy and it worked without needing the port.
Getting informed about the date change happening inside the widget however,
did not work.
I tried replacing "value" with "date" in the event attribute and the json
decoder (replacing Json.int with Json.string) but... it did not work.
Here are the files I have so far:
https://gist.github.com/pdamoc/48c6f7dd2f7fec44bdd3262f269f635c
--
There is NO FATE, we are the creators.
blog: http://damoc.ro/
--
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
There is NO FATE, we are the creators.
blog: http://damoc.ro/
--
You received this message because you are subscribed to the Google Groups "Elm Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elm-discuss+***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.