timgilbert / cljs-pikaday

A ClojureScript interface to the Pikaday javascript date-picker
MIT License
52 stars 9 forks source link

Formatting doesn't seem to matter #7

Closed feakuru closed 2 months ago

feakuru commented 6 years ago

Passing :format, :toString and :parse in :pikaday-attrs seems to have no effect. Am I doing it wrong?

halcyon commented 5 years ago

@feakuru I was able to get {:pkaday-attrs {:format "moment-js-format-string-here"}} working by adding https://clojars.org/cljsjs/moment to my project.clj/deps.edn and requiring [cljsjs.moment] in the ns form the component is defined in.