This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-12-02
Channels
- # adventofcode (47)
- # announcements (7)
- # aws (1)
- # babashka (52)
- # beginners (80)
- # boot (3)
- # calva (19)
- # cider (9)
- # cljs-dev (1)
- # clojure (48)
- # clojure-brasil (1)
- # clojure-dev (27)
- # clojure-europe (3)
- # clojure-madison (3)
- # clojure-nl (29)
- # clojure-spec (11)
- # clojure-sweden (1)
- # clojure-uk (49)
- # clojurescript (66)
- # core-async (20)
- # cryogen (4)
- # cursive (13)
- # data-science (7)
- # datomic (5)
- # emacs (30)
- # figwheel-main (11)
- # fulcro (15)
- # graphql (8)
- # jobs (5)
- # joker (17)
- # lambdaisland (1)
- # leiningen (2)
- # malli (2)
- # off-topic (5)
- # pathom (22)
- # re-frame (12)
- # reagent (29)
- # reitit (2)
- # ring (10)
- # shadow-cljs (57)
- # specter (3)
- # tools-deps (22)
- # vim (5)
- # xtdb (7)
Hey guys. How do you put a field as required on re-frame?
There's not enough context to give any sort of answer. What's a field? Is it an HTML form field, a DB field, some other kind of field?
Sorry
Yeah, it's a HTML field
I tried to put a :required on a {} but not worked as i tought
{:value (get-in @current [:addresses address-type id]) :type type :on-change on-change-action :disabled disabled? :required}
For future reference, such questions should be directed to #reagent since re-frame is just a data flow library, and it's reagent that manages all the DOM stuff.
Ok, i didn't know about this channel 😅
It seems that's a channel for each more or less used library out there. 🙂 I've learned about a few useful libraries just by going through the list of channels here.
@UNZALKY4V all boolean attributes have to be set to true, since Reagent is using a Clojure map to set them, so there has to be a value
All right