This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2015-11-18
Channels
- # admin-announcements (4)
- # beginners (306)
- # boot (191)
- # bristol-clojurians (4)
- # business (3)
- # cbus (4)
- # cider (6)
- # cljsrn (51)
- # clojure (147)
- # clojure-canada (1)
- # clojure-conj (6)
- # clojure-japan (2)
- # clojure-poland (8)
- # clojure-russia (57)
- # clojure-sg (1)
- # clojurecup (1)
- # clojurescript (229)
- # core-async (4)
- # cursive (47)
- # data-science (2)
- # datomic (3)
- # emacs (6)
- # events (1)
- # hoplon (16)
- # immutant (33)
- # jobs (1)
- # ldnclj (7)
- # off-topic (25)
- # om (69)
- # onyx (7)
- # re-frame (35)
- # reagent (3)
- # yada (4)
Hi, I'm trying to use this colorpicker: http://mjolnic.com/bootstrap-colorpicker/. How can I listen to the change event called 'changeColor' from within a reagent component ?
any ideas oh how to make secure front-end routes using secretary - and reagent-utils? something like https://github.com/gf3/secretary/issues/41 doesnt have to be a middle-ware; just having the user sign-in and protect other routes b4 they do so. (not strictly related to Reagent, i know but Im using Reagent for this project)
Hi @mswift42
so i recently had to do something similar here:
https://github.com/codefordenver/rmfu-feed/blob/master/src-cljs/rmfu_ui/profile.cljs#L12-L32
its not a 1:1 to what you may be trying to do but it might spark an idea on your end
basically, I would define an r/atom at the component level an have the -colorpicker
$('color-picker-selector')
on-change handler mutate the atom