Liking cljdoc? Tell your friends :D

dca-tec.js-utils

js-utils

A set of basic utility functions and wrappers for basic java-script and dom-related work. The intention here is either to wrap js-platform calls with more simple functions. Simple in the sense of at least more simple and meaningfully named functions, but also in the sense of less parameters necessary or containing already references to the environment, like window, document, etc

## js-utils
A set of basic utility functions and wrappers for basic java-script and
dom-related work.
The intention here is either to wrap js-platform calls with more simple
functions. Simple in the sense of at least more simple and meaningfully
named functions, but also in the sense of less parameters necessary or
containing already references to the environment, like window, document, etc
raw docstring

eventTargetcljs

(eventTarget event)

Gets the target element of the event

Gets the target element of the event
sourceraw docstring

getElementById!cljs

(getElementById! id)

Looks for the the element in the js document with the given id

Looks for the the element in the js document with the given id
sourceraw docstring

getStylesFromCSScljs

(getStylesFromCSS element)

Gets the CSS styles completely computed out of all css associated to the element

Gets the CSS styles completely computed out of all css associated to the element
sourceraw docstring

registerWindowEvent!cljs

(registerWindowEvent! eventName handler)

Registers the given event handler, so that it attends js-events with the given name

Registers the given event handler, so that it attends js-events with the given name
sourceraw docstring

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

× close