rum

Simple, decomplected, isomorphic HTML UI library for Clojure and ClojureScript | 0.12.8 https://github.com/tonsky/rum/blob/gh-pages/CHANGELOG.md#0128
sova-soars-the-sora 2019-09-07T14:10:33.000700Z

Hi! how do I disable a button once it has been clicked once?

Jan K 2019-09-07T17:02:46.000800Z

check out the "counter" example on https://github.com/tonsky/rum

Jan K 2019-09-07T17:06:36.001100Z

instead of displaying the number of clicks, you can make it render in the appropriate enabled/disabled state

sova-soars-the-sora 2019-09-07T19:03:41.002600Z

[:button.butans {:disabled (if (= true @quiz-submit-pressed) true false) looks OK?

sova-soars-the-sora 2019-09-07T19:08:22.002900Z

Oh, it won't actually update the disabled state that way o.o

sova-soars-the-sora 2019-09-07T19:08:26.003100Z

unless it draws again

sova-soars-the-sora 2019-09-07T19:08:40.003600Z

well, even drawing again it did'n change the components...

sova-soars-the-sora 2019-09-07T19:08:41.003800Z

hrm

sova-soars-the-sora 2019-09-07T19:10:22.004100Z

Oh hey I got it! I forgot to wrap the atom in (rum/react ~ )

sova-soars-the-sora 2019-09-07T19:10:39.004200Z

NVM thanks