This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-11-25
Channels
- # bangalore-clj (5)
- # beginners (225)
- # boot (36)
- # cider (1)
- # clara (2)
- # cljsjs (1)
- # clojure (76)
- # clojure-belgium (1)
- # clojure-conj (1)
- # clojure-india (4)
- # clojure-italy (5)
- # clojure-korea (1)
- # clojure-russia (22)
- # clojure-spec (35)
- # clojure-uk (52)
- # clojurescript (67)
- # community-development (17)
- # core-logic (2)
- # cursive (2)
- # datascript (28)
- # datomic (44)
- # emacs (1)
- # funcool (3)
- # hoplon (14)
- # lein-figwheel (2)
- # leiningen (2)
- # luminus (3)
- # midje (3)
- # mount (2)
- # nyc (2)
- # om (54)
- # om-next (1)
- # onyx (30)
- # re-frame (57)
- # reagent (19)
- # ring-swagger (23)
- # slack-help (10)
- # spacemacs (2)
- # specter (1)
- # vim (23)
If I build a hiccup vector with a for loop, what is the best practice to get unique keys?
Thank you
@danielgrosse this answer might also help: http://stackoverflow.com/questions/37164091/how-do-i-loop-through-a-subscribed-collection-in-re-frame-and-display-the-data-a/37186230#37186230
Thank you.
Are there any projects which take markdown files and convert them into hiccup?
@danielgrosse this may be relevant to you
https://github.com/reagent-project/reagent-cookbook/blob/master/recipes/markdown-editor/README.md
It doesnt take a file, but you could write a macro in clojure that slurps in a markdown file
But this is in Clojure so you can only use this on compile time with macros
I will try markdown-clj in combination with the SetInnerHtml
Wenn I set a reagent content with dangerousInnerHtml, how can I work with it after the generation? Do I have to use a DOM library?
Hi. I’m doing something silly, but I can’t figure it out. I have a form that looks like this:
(let [account (r/atom {:country "US"})]
[:div.column
[:div.form-group
[:label "Bank Country"]
[:div.input-group
[:select.form-control.custom-select
{:value (:country @account)
:on-change #(swap! account assoc :country (-> % .-target .-value))
}
[:option {:value "US"} "United States"]
[:option {:value "AU"} "Australia"]
[:option {:value "AT"} "Austria"]
[:option {:value "BE"} "Belgium"]
[:option {:value "CA"} "Canada"]
[:option {:value "DK"} "Denmark"]
[:option {:value "EE"} "Estonia"]
[:option {:value "FI"} "Finland"]
[:option {:value "FR"} "France"]
[:option {:value "DE"} "Germany"]
[:option {:value "GI"} "Gibralter"]
[:option {:value "IT"} "Italy"]
[:option {:value "IE"} "Ireland"]
[:option {:value "LU"} "Luxembourg"]
[:option {:value "NL"} "Netherlands"]
[:option {:value "NO"} "Norway"]
[:option {:value "PT"} "Portugal"]
[:option {:value "ES"} "Spain"]
[:option {:value "SE"} "Sweden"]
[:option {:value "CH"} "Switzerland"]
[:option {:value "GB"} "United Kingdom"]
]]]
[:div.form-group ]
[:button.btn.btn-primary.submitssnbutton
{:disabled (if (ssn-valid? @user) nil true)
:on-click #(process-bankinfo @user)}
"Save Bank Information”]])
The form appears, but I can’t change the value of the select. Obviously a syntax problem but I’m stumped.@credulous it looks like a form-1 component, you don’t miss an fn somewhere?