 
 (defn thead-row []
   (fn []
-   [:th [:td "td-val"]]
-   #_(let [{:keys [react-key cols] :as props} (om/props this)]
-     (html [:tr (map (fn [v] (th {:val (str v)})) cols)]))))
+    [:tr
+     [:th "th-0"]
+     [:th "th-val-1"]]))
+
+(defn tbody-row []
+  (fn []
+    (let [td-vals ["val-0" "val-1"]]
+      [:tr (map-indexed
+            (fn [i v]
+              [:td
+               (conj {:key i}
+                     {:style {:border "1px" :borderStyle "solid"}}
+                     {:onClick (fn [_] (println "onClick" v))})
+               v]) td-vals)])))
 
 (defn table []
   (let [id "id"
-        tname "tnamee"
+        tname "table-name"
         ;; sqlfn ""
         ;; cols
         ]

  (let [active-panel (re-frame/subscribe [:active-panel])]
    (fn []
      [:div
       [loading-throbber]
       [user-name-and-avatar]
       (panels @active-panel)
       ])))

      [:div
       [:div tname]
       [:table
        [:thead [thead-row]]
        [:tbody
         [tbody-row]
         [tbody-row]]
        ]])))

;; main

