This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-09-01
Channels
- # admin-announcements (1)
- # aws (1)
- # beginners (14)
- # boot (19)
- # cljs-dev (10)
- # cljsrn (2)
- # clojure (64)
- # clojure-android (4)
- # clojure-dev (5)
- # clojure-greece (7)
- # clojure-italy (10)
- # clojure-russia (42)
- # clojure-spec (117)
- # clojure-uk (78)
- # clojurescript (160)
- # cloverage (1)
- # conf-proposals (1)
- # cursive (8)
- # datomic (93)
- # editors (8)
- # editors-rus (5)
- # figwheel (1)
- # flambo (14)
- # hoplon (95)
- # jobs (2)
- # jobs-rus (1)
- # lambdaisland (4)
- # lein-figwheel (6)
- # leiningen (3)
- # om (106)
- # onyx (33)
- # planck (6)
- # proton (3)
- # protorepl (2)
- # random (2)
- # re-frame (9)
- # reagent (5)
- # ring (1)
- # untangled (61)
- # yada (50)
@onetom i started playing around with boot-static
ran into a cryptic error though
ever seen this?
hmm, ok
Has anyone gotten some sort of JS text editor working with hoplon before?
@flyboarder Nope. Only markdown, but works like a charm!
@leontalbot what are you using for the text-input ? I have been trying to get atom editor working with cljs.
but my use is only for markdown anyway
I use Google Spreadsheet as input
Spreadsheets are interfaces I like for MVPs
That is a really good idea!
@leontalbot do you use the forms api at all?
Google sheet api
Hoplon forms are better than Google Forms
I am creating forms via a Google spreadsheet
the form can even support payments via stripe, something Google Forms can't do...
@micha is there a way to invoke an attribute after the element is in the dom?
im trying a time delay right now
@flyboarder it depends, consider the following:
goes and reads about defelem+
ok im not sure I follow, the docs just say that attr and kids are a cell
(defelem+ foo [{:keys [color title]} kids]
(div :css (cell= {:color color})
(h2 :text title)
(ul
(for-tpl [kid kids]
(li kid)))))
...
(defc colors (cycle ["red" "blue"]))
(defc= color (first colors))
(with-interval 1000 (swap! colors next))
(def mything (foo :color color))
(html
(body
(myting :title "heythere"
(div "one")
(div "two"))))
kinda, it’s returning an element that you then use normally?
so you can get kids from a cell, that makes sense but im not sure i get the difference with the attributes
you’ve kinda primed the element with attributes
so how would I go about adding an attribute later?
or is that what happens when I make mything
right thats normal tho
im not sure I see the benefit with the attributes from a regular defelem
oh I see so you can pass the argument through to the underlying elem
vs with regular defelem, where the arguments are actual parameters the constructor function takes
right gotcha, but im not sure this helps my situation haha
attributes are invoked before the element has been attached to the dom right, im looking to invoke it after, that way the element also has a parent, i guess i can attach an event listener inside my attribute for the load event
in the defmethod
?
that only works if you craete the element in an expression that's in the html
block though
ah that might be what I am looking for!
@micha I just noticed but is there no API docs for version 6?
oh i see the crossclj docs, hmmm maybe a more read-able set should be generated
yeah i wish codeina had markdown support
yeah the md is a nice way to go
you could also push that to the wiki repo
and have it generate over there
right cuz it’s all bundled