Fork me on GitHub
#hyperfiddle
<
2018-12-12
>
Dustin Getz14:12:15

Massive braindump about clojure and graphs if anyone interested: https://www.reddit.com/r/Clojure/comments/a576pp/clojure_graphs/

❤️ 4
Dustin Getz21:12:01

@alexandrkozyrev, here is a tip, you can set custom attribute renderers globally for your subdomain:

alexandrkozyrev09:12:29

(fn [val ctx props] [hyperfiddle.ui.controls/code (-> val js/JSON.parse (js/JSON.stringify :space “\t”)) ctx (assoc props :mode “jsx”)])

alexandrkozyrev09:12:51

works a bit better for json

alexandrkozyrev10:12:41

can you please change a default placeholder for “renderer” field from “-” to smth like “click me to edit”. I spent about 5mins to find out how to open/edit this field

Dustin Getz14:12:13

Thanks, ticketed

Dustin Getz21:12:19

(fn [val ctx props] 
  [hyperfiddle.ui.controls/code val ctx (assoc props :mode "text")])

Dustin Getz21:12:33

That gives you newlines, at least