Utility functions for interacting with the DOM
Utility functions for interacting with the DOM
(form->values el)
Returns the values from a DOM Form Element as a ClojureScript Map
Returns the values from a DOM Form Element as a ClojureScript Map
(get-element arg)
Attempts to grab a single DOM element.
arg can be either:
Returns nil if not able to grab the element.
Attempts to grab a single DOM element. arg can be either: 1) already a DOM element 2) id of an element (ie: document.getElementById) 3) a querySelector CSS string Returns nil if not able to grab the element.
(safe-prevent-default js-evt)
calls preventDefault() on a JS event if possible does nothing if js-evt.preventDefault is not a function returns nil
calls preventDefault() on a JS event if possible does nothing if js-evt.preventDefault is not a function returns nil
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close