This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2022-11-18
Channels
- # aws (1)
- # babashka (35)
- # beginners (52)
- # biff (4)
- # calva (55)
- # cider (19)
- # clojure (54)
- # clojure-dev (3)
- # clojure-europe (23)
- # clojure-nl (1)
- # clojure-norway (3)
- # clojure-uk (2)
- # clojurescript (9)
- # code-reviews (3)
- # datahike (1)
- # fulcro (1)
- # funcool (4)
- # graalvm (21)
- # gratitude (2)
- # java (5)
- # jobs (2)
- # joyride (1)
- # kaocha (13)
- # malli (2)
- # off-topic (22)
- # other-languages (11)
- # pathom (4)
- # re-frame (35)
- # reagent (3)
- # reitit (3)
- # releases (2)
- # remote-jobs (1)
- # rum (1)
- # shadow-cljs (42)
- # sql (18)
- # tools-deps (72)
- # web-security (6)
- # xtdb (15)
Hope this is the right place: I have a react component (PrimeReact DataTable) that takes some XML for a react property, e.g. data-header = <ColumnGroup><Row><Column name=“test” field=“field”></Row></ColumnGroup> … how do I correctly set that on the cljs side? It looks like the #js literal wants a map or vector.. the documentation for the component is here: https://www.primefaces.org/primereact/datatable/colgroup/ and specifically I’m looking to set the headerGroup property, dynamically ultimately, but my first pass can be static. Thanks for help!
So far this has worked:
:headerColumnGroup (reagent.core/as-element [:> ColumnGroup
[:> Row
[:> Column {:header "Provider" :colSpan "1"}]
[:> Column {:header "Office" :colSpan "1"}]
[:> Column {:header "Monday, October 10,2020" :colSpan "9"}]
]])
.. it’s a start.FYI you can remove the double quote for number values.