This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-03
Channels
- # bangalore-clj (1)
- # beginners (16)
- # boot (23)
- # chestnut (5)
- # cljs-dev (3)
- # cljsjs (3)
- # clojure (115)
- # clojure-conj (3)
- # clojure-italy (17)
- # clojure-russia (22)
- # clojurescript (20)
- # core-async (11)
- # events (3)
- # fulcro (91)
- # funcool (5)
- # heroku (7)
- # hoplon (5)
- # leiningen (3)
- # off-topic (2)
- # om (1)
- # onyx (9)
- # parinfer (1)
- # protorepl (2)
- # re-frame (3)
- # slack-help (2)
- # spacemacs (5)
- # unrepl (1)
Is there any way to use :css with an element defined by defelem?
I've tried something along the lines of:
(defelem foo [{key1 :key1 key2 :key2 :as attrs} _]
(let [leftovers (dissoc attrs :key1 key2)]
(div leftovers ...)))
(foo :css {:width ...})
but it doesn't seem to workThe css part gets swallowed and isn't available in leftovers
@fiddlerwoaroof try :style
instead of :css
also check the HTML output and see if the attribute is there at all