Liking cljdoc? Tell your friends :D

std.dom.event


event-handlerclj

(event-handler dom)

finds the relevant handler by ancestry

(def -parent- (doto (dom/dom-create :mock/pane) (dom/dom-attach :parent-handler)))

(def -child- (doto (dom/dom-create :mock/pane) (mut/mutable:set :parent -parent-)))

(event-handler -child-) => :parent-handler

finds the relevant handler by ancestry

(def -parent- (doto (dom/dom-create :mock/pane)
                (dom/dom-attach :parent-handler)))

(def -child-  (doto (dom/dom-create :mock/pane)
                (mut/mutable:set :parent -parent-)))

(event-handler -child-)
=> :parent-handler
raw docstring

event-paramsclj

(event-params params)

converts input into event params

converts input into event params
raw docstring

handle-eventclj

(handle-event dom params item listener data)

handles an event given all necessary inputs

handles an event given all necessary inputs
raw docstring

handle-localclj

(handle-local dom {:keys [id] :as m})

handles a local dom event

(handle-local (-> (dom/dom-create :mock/pane-local) (dom/dom-render) :shadow) {:id :local/test}) ;;[:+ :mock/pane-local] => dom/dom?

handles a local dom event

(handle-local (-> (dom/dom-create :mock/pane-local)
                  (dom/dom-render)
                  :shadow)
              {:id :local/test})
;;[:+ :mock/pane-local]
=> dom/dom?
raw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close