This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-07-09
Channels
- # admin-announcements (1)
- # beginners (1)
- # boot (16)
- # capetown (2)
- # cider (1)
- # clara (1)
- # cljs-dev (2)
- # cljsrn (2)
- # clojure-brasil (3)
- # clojure-czech (2)
- # clojure-greece (4)
- # clojure-quebec (2)
- # clojure-russia (3)
- # clojure-spec (8)
- # clojure-sweden (1)
- # clojure-uk (1)
- # clojurescript (8)
- # datomic (12)
- # editors (12)
- # events (1)
- # hoplon (11)
- # off-topic (2)
- # om (56)
- # proton (2)
- # reagent (2)
- # spacemacs (1)
@alandipert: ERROR: Unknown dot form of (. (div) -innerHTML ("<p>some text</p>")) with classification [:cljs.analyzer/expr :cljs.analyzer/property :cljs.analyzer/expr] at file hoplon/app_pages/indexDOT_html.cljs, line 22, column 3
@eric.shao: i think you want something like this, perhaps:
thats the easiest way to do it in hoplon. the :html
attribute expands to (.html (js/jQuery the-element) "<p>hello world</p>")
you can see all the custom attributes provided by hoplon here: https://github.com/hoplon/hoplon/blob/master/src/hoplon/core.cljs#L522-L586
and looking at those will show some examples of how you can add your own custom attributes
@micha Thank you very much. And I’ve tried it , it works good. I’ll learn the code.Thx😃
@eric.shao: are you in china?