[ClojureScript] Re: Automatic map clj to js conversion
Thank you, that's it. Thanks a lot! Ciao ...Jochen -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at https://groups.google.com/group/clojurescript.
Re: [ClojureScript] Re: Automatic map clj to js conversion
Here's the Reagent-React adapter that does it: https://github.com/reagent-project/reagent/blob/93043e86c49c62bc04292b735f5bf524aaebb6ba/src/reagent/impl/component.cljs#L256-L267 On Thu, Apr 27, 2017 at 7:43 AM, Thomas Hellerwrote: > That is done by reagent when it interprets the vector created by > datetime-picker. > > Not a CLJS feature. > > On Thursday, April 27, 2017 at 10:04:35 AM UTC+2, Jochen wrote: > > Hi… > > > > for a few days I am evaluating clojurescript/reagent et.Al.. I just got > integrated all the bits and pieces like reagent, cljsjs/react-bootstrap and > cljsjs/react-bootstrap-datetimepicker. > > > > Now I got a working configured datetimepicker on the screen with the > following code: > > > > (def datetime (reagent/adapt-react-class js/ > ReactBootstrapDatetimepicker)) > > > > (defn datetime-picker [] > > [datetime {:input-format "MMM DD, HH:mm:ss" > > :date-time (js/Date.)}] > > > > What I am puzzled about is where the cljs config map conversion to > javascript happens. > > I read about #js, clj->js and the like everywhere, but here the map > seems to be automatically converted (including kebab to camel case > conversion). > > > > Is this a newer clojurescript feature I did not read about yet? > > > > Ciao > > > > …Jochen > > -- > Note that posts from new members are moderated - please be patient with > your first post. > --- > You received this message because you are subscribed to the Google Groups > "ClojureScript" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to clojurescript+unsubscr...@googlegroups.com. > To post to this group, send email to clojurescript@googlegroups.com. > Visit this group at https://groups.google.com/group/clojurescript. > -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at https://groups.google.com/group/clojurescript.
[ClojureScript] Re: Automatic map clj to js conversion
That is done by reagent when it interprets the vector created by datetime-picker. Not a CLJS feature. On Thursday, April 27, 2017 at 10:04:35 AM UTC+2, Jochen wrote: > Hi… > > for a few days I am evaluating clojurescript/reagent et.Al.. I just got > integrated all the bits and pieces like reagent, cljsjs/react-bootstrap and > cljsjs/react-bootstrap-datetimepicker. > > Now I got a working configured datetimepicker on the screen with the > following code: > > (def datetime (reagent/adapt-react-class js/ReactBootstrapDatetimepicker)) > > (defn datetime-picker [] > [datetime {:input-format "MMM DD, HH:mm:ss" > :date-time (js/Date.)}] > > What I am puzzled about is where the cljs config map conversion to javascript > happens. > I read about #js, clj->js and the like everywhere, but here the map seems to > be automatically converted (including kebab to camel case conversion). > > Is this a newer clojurescript feature I did not read about yet? > > Ciao > > …Jochen -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at https://groups.google.com/group/clojurescript.
[ClojureScript] Automatic map clj to js conversion
Hi… for a few days I am evaluating clojurescript/reagent et.Al.. I just got integrated all the bits and pieces like reagent, cljsjs/react-bootstrap and cljsjs/react-bootstrap-datetimepicker. Now I got a working configured datetimepicker on the screen with the following code: (def datetime (reagent/adapt-react-class js/ReactBootstrapDatetimepicker)) (defn datetime-picker [] [datetime {:input-format "MMM DD, HH:mm:ss" :date-time (js/Date.)}] What I am puzzled about is where the cljs config map conversion to javascript happens. I read about #js, clj->js and the like everywhere, but here the map seems to be automatically converted (including kebab to camel case conversion). Is this a newer clojurescript feature I did not read about yet? Ciao …Jochen -- Note that posts from new members are moderated - please be patient with your first post. --- You received this message because you are subscribed to the Google Groups "ClojureScript" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojurescript+unsubscr...@googlegroups.com. To post to this group, send email to clojurescript@googlegroups.com. Visit this group at https://groups.google.com/group/clojurescript.