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
grumplet 2018-06-28T14:03:22.000021Z

Does anyone use antizer with rum? I’m looking for some help making an antd form reactive - i.e. I want its field values to update when they change in the db atom.

grumplet 2018-06-28T14:11:07.000148Z

Also, how to initialise the form fields. I feel that (ant/create-form patient-form :props {:nhs-number "123456"}) should do something here…

grumplet 2018-06-28T14:17:05.000301Z

Ah, I see that :nhs-number ends up in rum component state, rather than in the form field :nhs-number

grumplet 2018-06-28T14:33:47.000101Z

Using this for initialisation:

(ant/form {:layout "horizontal"}
  (ant/form-item (labelled "NHS Number")
    (ant/decorate-field my-form "nhs-number" {:initial-value (:nhs-number state) } (ant/input))))

grumplet 2018-06-28T14:41:56.000402Z

OK. That’ll do - I don’t need it to react, only to initialise from the database correctly.