This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defn CustomInputHandler [] | |
(this-as this (.call InputHandler this))) | |
(goog/inherits CustomInputHandler InputHandler) | |
(set! | |
(.. CustomInputHandler -prototype -selectRow) | |
(fn [row opt-multi] | |
(this-as this | |
(if (.-activeElement_ this) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defui AddPerson | |
Object | |
(render [this] | |
(let [{:keys [add-fn]} (om/get-computed this) | |
clear-fn #(om/update-state! this assoc :first-name "" :last-name "")] | |
(dom/div nil | |
(dom/input #js {:type "text" | |
:placeholder "Firstname" | |
:value (om/get-state this :first-name) | |
:onChange #(om/update-state! this assoc :first-name (.. % -target -value))}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(ns db.jdbc-types-jsonb | |
(:require [jdbc.proto] | |
[clojure.data.json :as json]) | |
(:import [org.postgresql.util PGobject])) | |
;; use the proto/ISQLType to extend a new Postgres type | |
;; that will be generated from a clojure map type | |
(extend-protocol jdbc.proto/ISQLType | |
clojure.lang.IPersistentMap |