This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-14
Channels
- # announcements (1)
- # beginners (85)
- # calva (23)
- # cider (3)
- # clj-kondo (33)
- # cljs-dev (12)
- # clojure (79)
- # clojure-dev (5)
- # clojure-europe (1)
- # clojure-nl (3)
- # clojure-uk (3)
- # clojurescript (5)
- # clojutre (2)
- # data-science (30)
- # datomic (3)
- # duct (7)
- # fulcro (8)
- # garden (18)
- # jackdaw (2)
- # leiningen (1)
- # off-topic (3)
- # pathom (4)
- # qa (24)
- # re-frame (13)
- # reagent (3)
- # shadow-cljs (58)
- # testing (1)
what's the best way to deal with addEventListener
s ?
working with https://developers.google.com/maps/documentation/javascript/infowindows
i wanted to deal with hiccup only so i used render-to-string
for component and it worked
the only problem is there are no on-click
events when render-to-string
is used, and i am not sure how to add them afterwards
(js/setTimeout (fn [args] (.addEventListener (.getElementById js/document "take") "click" (fn [args] (println "TAKE")))) 1000)
This works but if feels soooo dirty
does anyone have any suggestions ?
https://stackoverflow.com/questions/23187045/how-to-detect-button-click-in-googlemaps-infowindow this works and i like it more if anyone has better one i'd appreciate it