                         (add-step|swap! cursor "foo"))}
     "string"]
    [:button {:onClick (fn []
-                        (add-step|swap! cursor {"headers" ["a" "b"]
-                                                "columns" [{:type :ref/js
-                                                            :js "aurora.runtime.table.identity_column"}
-                                                           {:type :ref/js
-                                                            :js "aurora.runtime.table.identity_column"}]
-                                                "rows" [[1 2] [3 4]]}))}
+                        (add-step|swap! cursor (table)))}
     "table"]])
 
 (defdom ref-inserter [page cursor]

                                 )))

(defn focus! []
  (->> (dom/$$ :.focused)
       (last)
       (.focus)))

;;*********************************************************
;; Go!

(defn ref-menu [step & [cb]]
  (fn [e]
    (when (mutable? step)
      (show-menu! e (concat [{:label "table!"
                              :action (fn []
                                        (swap! step (constantly (table)))
                                        (when cb
                                           (cb)))}]
                            (for [ref (refs-in-scope (current :page) (current :step))]
                              {:label (subs ref 0 5)
                               :action (fn []
                                         (swap! step (constantly (ref-id ref)))
                                         (when cb
                                           (cb)))}))))))

(defmethod item-ui :ref/id [step]
  (dom
