Open awb99 opened 1 year ago
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))
https://github.com/multunus/dashboard-clj/blob/master/src/cljs/dashboard_clj/layouts/grid_layout_responsive.cljs
Responsive grid layout
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))