clojure-quant / awesome

0 stars 0 forks source link

React grid layout #15

Open awb99 opened 1 year ago

awb99 commented 1 year ago

grid.grid (:require ["react-grid-layout" :refer [Responsive WidthProvider]]))

grid.grid (:require ["react-grid-layout" :refer [Responsive WidthProvider]]))

(defn grid [content]

(prn ">>>> re-rendering grid <<<<") (into [:> (WidthProvider Responsive) {:id "test-grid" :className "layout" :cols {:lg 12, :md 10, :sm 6, :xs 4, :xxs 2}}] content))

awb99 commented 1 year ago

https://github.com/multunus/dashboard-clj/blob/master/src/cljs/dashboard_clj/layouts/grid_layout_responsive.cljs

Responsive grid layout