This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-02-05
Channels
- # aatree (2)
- # admin-announcements (15)
- # announcements (2)
- # aws (8)
- # beginners (160)
- # boot (290)
- # braid-chat (28)
- # cider (8)
- # clara (1)
- # cljsrn (3)
- # clojure (154)
- # clojure-czech (7)
- # clojure-russia (162)
- # clojurebridge (2)
- # clojurescript (128)
- # cursive (29)
- # datomic (30)
- # emacs (7)
- # events (1)
- # hoplon (5)
- # jobs (1)
- # ldnclj (7)
- # leiningen (3)
- # off-topic (11)
- # om (82)
- # onyx (68)
- # overtone (1)
- # parinfer (57)
- # portland-or (1)
- # proton (18)
- # re-frame (8)
- # reagent (32)
- # ring-swagger (3)
- # yada (5)
hi does anyone know how I can specify a custom property for a reagent component? I have a [:input
and I want to set a .autocomplete
property on it. Whatever I do, it is set as a string "[object Object]”
. What am I missing ?
@shriphani: [:input {:autocomplete true}]
?
@slotkenov: no more like:
See this SO question http://stackoverflow.com/questions/34439916/syntax-for-giving-a-button-a-particular-width for why you have to put #js
before every hash-map. Also in troublesome spots clj->js
is just easier.
Actually I don't even know if you need to do that sort of thing (`clj->js`) with hiccup. I am probably not helping.
@cjmurphy: no need for #js with reagent
@shriphani: is it just your :autocomplete
attr which isn't rendering ? i.e. are your :on-change
handlers being called correctly etc
if I make an attr :autocomplete
I get a warning suggesting I am looking for :autoComplete
@shriphani: hmm my next guess was react didn't support 'autoComplete' attr, react docs say it is supported http://facebook.github.io/react/docs/tags-and-attributes.html so i dunno
i thought autoComplete
attr value was an "on"
or "off"
string ? what are you wanting it to be ?
it is 2:00am, I’ll fight that battle tomorrow. Thanks for the help @mccraigmccraig and others .
Hi folks - I’m using re-com on a project and we’re going to need a something like DataTables (https://datatables.net/) What are people using to do this in reagent / re-com?
https://facebook.github.io/fixed-data-table/ and http://adazzle.github.io/react-data-grid/ are two React-compatible choices that come to mind. Haven't used either of those though, so can't comment how nice they are (or not) in practice.
thanks @jaen - I’ll check them out…