This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-09-07
Channels
- # announcements (2)
- # bangalore-clj (1)
- # beginners (88)
- # calva (1)
- # cljdoc (1)
- # cljs-dev (1)
- # cljsrn (2)
- # clojure (88)
- # clojure-berlin (2)
- # clojure-europe (2)
- # clojure-india (1)
- # clojure-spec (3)
- # clojure-uk (3)
- # clojurescript (9)
- # clojureverse-ops (4)
- # clojutre (2)
- # cursive (3)
- # data-science (1)
- # emacs (3)
- # fulcro (12)
- # pathom (4)
- # reitit (1)
- # rum (10)
- # shadow-cljs (9)
- # spacemacs (11)
- # sql (7)
- # tools-deps (16)
- # vim (14)
- # xtdb (3)
- # yada (1)
Hi! how do I disable a button once it has been clicked once?
check out the "counter" example on https://github.com/tonsky/rum
instead of displaying the number of clicks, you can make it render in the appropriate enabled/disabled state
NVM thanks
[:button.butans {:disabled (if (= true @quiz-submit-pressed) true false)
looks OK?
Oh, it won't actually update the disabled state that way o.o
unless it draws again
well, even drawing again it did'n change the components...
Oh hey I got it! I forgot to wrap the atom in (rum/react ~ )