Clojurians
#hoplon
<
2016-07-09
>

This page is not created by, affiliated with, or supported by Slack Technologies, Inc.

eric.shao03:07:54

@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

micha13:07:57

@eric.shao: i think you want something like this, perhaps:

micha13:07:53

thats the easiest way to do it in hoplon. the :html attribute expands to (.html (js/jQuery the-element) "<p>hello world</p>")

micha13:07:37

or in plain js, jQuery(the-element).html("<p>hello world</p>")

micha13:07:56

you can see all the custom attributes provided by hoplon here: https://github.com/hoplon/hoplon/blob/master/src/hoplon/core.cljs#L522-L586

micha13:07:27

and looking at those will show some examples of how you can add your own custom attributes

eric.shao14:07:52

@micha Thank you very much. And I’ve tried it , it works good. I’ll learn the code.Thx:smiley:

micha14:07:14

@eric.shao: are you in china?

eric.shao14:07:50

(sorry @micha ,The slack always reconnecting…, Even through VPN) Yes, I am a Chinese. Welcome to China.hehe~ (but I am not a professional developer.)

micha14:07:25

awesome, it still is cool talking to people on the other side of the world

eric.shao14:07:59

Yes, especially for me, and thank you guys for shareing the code and wisdom.