I have updated the gist with a version that works for retrieving information from the web-component https://gist.github.com/pdamoc/48c6f7dd2f7fec44bdd3262f269f635c It generates 2 Msg when a date is clicked but it works.. Thank you for the idea with getting the information as a Value.
Now the need is for some kind of structure and way of delivering Elm products that embed this kind of web-components. On Mon, Sep 26, 2016 at 11:08 PM, Frederick Yankowski <[email protected]> wrote: > Peter, > > I played around with the code in your gist. The value returned by the > "date-changed" event does indeed seem to be a JS Date value (which I > determined by handling it as a Json.Value value). > > I don't see how to convert that Json.Value holding a JS Date into an Elm > `Time` value. The Json.Decode functions don't seem to handle JS Date values > at all. > > -- > 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 [email protected]. > 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
