Liking cljdoc? Tell your friends :D

js-lib.core


add-classcljs

(add-class elements single-class)

Add class to elements collection

Add class to elements collection
sourceraw docstring

add-fn-to-eventcljs

(add-fn-to-event element event-type event-function & [fn-params])

Add function to event for particular element

Add function to event for particular element
sourceraw docstring

ancestorcljs

(ancestor element ancestor-level)

Finds ancestor of an element at particular level

Finds ancestor of an element at particular level
sourceraw docstring

anim-timecljs

source

append-elementcljs

(append-element selector html-content)

Append html string in elements fetched by selector

Append html string in elements fetched by selector
sourceraw docstring

cb-checked-valuescljs

(cb-checked-values checkbox-group-name)

Checks which values are checked in checkbox group and packs them in vector

Checks which values are checked in checkbox group and packs them in vector
sourceraw docstring

checked-valuecljs

(checked-value radio-group-name)

Query dom for input html radio group by name and find if the choice was made

Query dom for input html radio group by name and find if the choice was made
sourceraw docstring

checked-value-with-indexcljs

(checked-value-with-index radio-group-elements index)

Iterate through html radio elements and check if any of them is checked, if html radio element is checked, return it's value

Iterate through html radio elements and check if any of them is checked,
if html radio element is checked, return it's value
sourceraw docstring

contains-classcljs

(contains-class elements single-class)

Remove class from elements collection

Remove class from elements collection
sourceraw docstring

contentcljs

(content selector html-content)

Empty fetched elements by selector and append html string

Empty fetched elements by selector and append html string
sourceraw docstring

convert-to-vectorcljs

(convert-to-vector node-list)

Convert html NodeList object to clojure vector

Convert html NodeList object to clojure vector
sourceraw docstring

determine-param-typecljs

(determine-param-type exec-fn param)

Determine if param is string or html type of object

Determine if param is string or html type of object
sourceraw docstring

dispatch-eventcljs

(dispatch-event event elem & [window-obj])

Dispatch event on element from window-obj

Dispatch event on element from window-obj
sourceraw docstring

element-existscljs

(element-exists selector)

Check if fade in style exists in DOM

Check if fade in style exists in DOM
sourceraw docstring

empty-nodescljs

(empty-nodes selector)

Empty elements feched by selector

Empty elements feched by selector
sourceraw docstring

end-please-waitcljs

(end-please-wait)

Hide please wait message

Hide please wait message
sourceraw docstring

end-progress-barcljs

(end-progress-bar)

Hide progress bar message

Hide progress bar message
sourceraw docstring

eventcljs

(event element event-type event-function & [fn-params])

Bind function to event on elements fetched by selector

(event element "onclick" event-function [1 2 3])

element Represents selector or html element event-type Represents html event, like onclick, onload... event-function Represents function name [fn-params] Represents vector that will be passed to event function

Bind function to event on elements fetched by selector

(event element "onclick" event-function [1 2 3])

element         Represents selector or html element
event-type      Represents html event, like onclick, onload...
event-function  Represents function name
[fn-params]     Represents vector that will be passed to event function
sourceraw docstring

eventscljs

source

fade-anim-appendcljs

(fade-anim-append delay-time
                  style-id
                  animation-name-class
                  from-opacity
                  to-opacity)

Append fade in style to head

Append fade in style to head
sourceraw docstring

fade-incljs

(fade-in selector
         html-content
         delay-time
         &
         [style-identification animation-name-class from-opacity to-opacity])

Fade in html string content in elements fetched by selector during delay time

parameters: selector query document with this selector html-content String or HTMLObject that will be inserted delay-time fade-in duration time

style-identification id of style html element that will be generated and appended animation-name-class generating style html element, this parameter will be used for animation and class name from-opacity number from 0.0 to 1.0 that will specify starting opacity of fading element to-opacity number from 0.0 to 1.0 that will specify ending opacity of fading element

Fade in html string content in elements fetched by selector during delay time

parameters:
 selector              query document with this selector
 html-content          String or HTMLObject that will be inserted
 delay-time            fade-in duration time
 
 style-identification  id of style html element that will be generated and appended
 animation-name-class  generating style html element, this parameter will be used for
                         animation and class name
 from-opacity          number from 0.0 to 1.0 that will specify starting opacity of
                         fading element
 to-opacity            number from 0.0 to 1.0 that will specify ending opacity of
                         fading element
sourceraw docstring

fade-in-iterationcljs

(fade-in-iteration ch-node sl-node anim-name-class style-id delay-time)

Set class on element to fade in, and and then append element to selected node

Set class on element to fade in, and and then append element to selected node
sourceraw docstring

fade-outcljs

(fade-out selector
          delay-time
          &
          [style-identification only-content animation-name-class from-opacity
           to-opacity])

Fade out html string content in elements fetched by selector during delay time

parameters: selector query document with this selector delay-time fade-out duration time

style-identification id of style html element that will be generated and appended only-content when removing faded element true for only for content to be remove false for element, fetched with selector, to be removed animation-name-class generating style html element, this parameter will be used for animation and class name from-opacity number from 0.0 to 1.0 that will specify starting opacity of fading element to-opacity number from 0.0 to 1.0 that will specify ending opacity of fading element

Fade out html string content in elements fetched by selector during delay time

parameters:
 selector              query document with this selector
 delay-time            fade-out duration time
 
 style-identification  id of style html element that will be generated and appended
 only-content          when removing faded element
                         true for only for content to be remove
                         false for element, fetched with selector, to be removed
 animation-name-class  generating style html element, this parameter will be used for
                         animation and class name
 from-opacity          number from 0.0 to 1.0 that will specify starting opacity of
                         fading element
 to-opacity            number from 0.0 to 1.0 that will specify ending opacity of
                         fading element
sourceraw docstring

fade-out-and-fade-incljs

(fade-out-and-fade-in selector anim-duration html-content)

Automation fade in fade out of an element

Automation fade in fade out of an element
sourceraw docstring

find-event-typecljs

(find-event-type event index)

Find event type of predefined types

Find event type of predefined types
sourceraw docstring

get-all-siblingscljs

(get-all-siblings element)

Return all siblings

Return all siblings
sourceraw docstring

get-attrcljs

(get-attr element attr-name)

Get attribute's value of element

Get attribute's value of element
sourceraw docstring

get-by-classcljs

(get-by-class element-class)

Select elements by class returns collection of elements (html nodes)

Select elements by class
returns collection of elements (html nodes)
sourceraw docstring

get-by-idcljs

(get-by-id element-id)

Select element by id returns single element (html node)

Select element by id
returns single element (html node)
sourceraw docstring

get-checkedcljs

(get-checked element)

Returns elements checked

Returns elements checked
sourceraw docstring

get-child-nodescljs

(get-child-nodes element)

Fetch child nodes of element param

Fetch child nodes of element param
sourceraw docstring

get-class-listcljs

(get-class-list element)

Get classList property

Get classList property
sourceraw docstring

get-inner-htmlcljs

(get-inner-html element)

Get innerHTML property of first element feched by selector

Get innerHTML property of first element feched by selector
sourceraw docstring

get-next-siblingscljs

(get-next-siblings element)

Return vector of next siblings

Return vector of next siblings
sourceraw docstring

get-node-namecljs

(get-node-name element)

Get nodeName property

Get nodeName property
sourceraw docstring

get-outer-htmlcljs

(get-outer-html selector)

Get outerHTML property of first element feched by selector

Get outerHTML property of first element feched by selector
sourceraw docstring

get-parentcljs

(get-parent element)

Get parentNode property

Get parentNode property
sourceraw docstring

get-previous-siblingscljs

(get-previous-siblings element)

Return vector of previous siblings

Return vector of previous siblings
sourceraw docstring

get-selected-optionscljs

(get-selected-options element)

Get values of property selectedOptions and pack them in vector

Get values of property selectedOptions and pack them in vector
sourceraw docstring

get-srccljs

(get-src element)

Returns elements src attribute value

Returns elements src attribute value
sourceraw docstring

get-typecljs

(get-type element)

Returns elements type

Returns elements type
sourceraw docstring

get-urlcljs

(get-url)

Retrieve URL from address bar

Retrieve URL from address bar
sourceraw docstring

get-valuecljs

(get-value element)

Returns elements value

Returns elements value
sourceraw docstring

get-value-as-datecljs

(get-value-as-date element)

Returns elements value

Returns elements value
sourceraw docstring

get-value-as-numbercljs

(get-value-as-number element)

Returns elements value

Returns elements value
sourceraw docstring

html?cljs

(html? data)

Is data fn parameter HTML element

Is data fn parameter HTML element
sourceraw docstring

init-eventcljs

(init-event event & [window-obj])

Initialize event for particular event object

Initialize event for particular event object
sourceraw docstring

is-checked?cljs

(is-checked? element)

Return value of checked property from html element

Return value of checked property from html element
sourceraw docstring

is-valid?cljs

(is-valid? element)

Returns elements value

Returns elements value
sourceraw docstring

parse-htmlcljs

(parse-html html-content)

Parses html from string

Parses html from string
sourceraw docstring

prepend-elementcljs

(prepend-element selector html-content)

Prepend html string in elements fetched by selector

Prepend html string in elements fetched by selector
sourceraw docstring

query-selectorcljs

(query-selector selector)

Select first element of what css selector fetches from document returns single element (html node)

Select first element of what css selector fetches from document
returns single element (html node)
sourceraw docstring

query-selector-allcljs

(query-selector-all selector)

Select all element of what css selector fetches from document returns collection of elements (html nodes)

Select all element of what css selector fetches from document
returns collection of elements (html nodes)
sourceraw docstring

query-selector-all-on-elementcljs

(query-selector-all-on-element element selector)

Select all element of what css selector fetches from element param returns collection of elements (html nodes)

Select all element of what css selector fetches from element param
returns collection of elements (html nodes)
sourceraw docstring

query-selector-on-elementcljs

(query-selector-on-element element selector)

Select first element of what css selector fetches from element param returns single element (html node)

Select first element of what css selector fetches from element param
returns single element (html node)
sourceraw docstring

remove-all-eventcljs

(remove-all-event element event-type)

Remove all functions from executing after an event has occurred on particular element/s

Remove all functions from executing after an event has occurred on particular element/s
sourceraw docstring

remove-all-fns-from-eventcljs

(remove-all-fns-from-event element event-type)

Remove all functions from executing after an event has occurred on particular element

Remove all functions from executing after an event has occurred on particular element
sourceraw docstring

remove-classcljs

(remove-class elements single-class)

Remove class from elements collection

Remove class from elements collection
sourceraw docstring

remove-elementcljs

(remove-element selector)

Remove elements fetched by selector

Remove elements fetched by selector
sourceraw docstring

remove-element-contentcljs

(remove-element-content selector)

Remove content from elements fetched by selector

Remove content from elements fetched by selector
sourceraw docstring

remove-element-from-elementcljs

(remove-element-from-element element selector)

Remove elements fetched by selector

Remove elements fetched by selector
sourceraw docstring

remove-eventcljs

(remove-event element event-type event-function)

Remove function from event on elements fetched by selector

(remove-event element "onclick" event-function))

element Represents selector or html element event-type Represents html event, like onclick, onload... event-function Represents function name

Remove function from event on elements fetched by selector

(remove-event element "onclick" event-function))

element         Represents selector or html element
event-type      Represents html event, like onclick, onload...
event-function  Represents function name
sourceraw docstring

remove-fn-from-eventcljs

(remove-fn-from-event element event-type event-function)

Remove particular function from executing after an event has occurred

Remove particular function from executing after an event has occurred
sourceraw docstring

replace-allcljs

(replace-all str-content replace-this replace-with)

Replace every occurance of supplied string

Replace every occurance of supplied string
sourceraw docstring

replace-singlecljs

(replace-single str-content replace-this replace-with)

Replace first occurrence of string in first parameter

Replace first occurrence of string in first parameter
sourceraw docstring

set-attrcljs

(set-attr element attr-name value)

Set attribute's value of element

Set attribute's value of element
sourceraw docstring

set-attrscljs

(set-attrs elements attr-name value)

Set attribute's value of elements collection

Set attribute's value of elements collection
sourceraw docstring

set-checkedcljs

(set-checked element new-value)

Sets element's checked

Sets element's checked
sourceraw docstring

set-inner-htmlcljs

(set-inner-html selector html-content)

Set html-content as innerHTML property of elements feched by selector

Set html-content as innerHTML property of elements feched by selector
sourceraw docstring

set-outer-htmlcljs

(set-outer-html selector html-content)

Set html-content as outerHTML property of elements feched by selector

Set html-content as outerHTML property of elements feched by selector
sourceraw docstring

set-srccljs

(set-src element new-value)

Sets element's src

Sets element's src
sourceraw docstring

set-valuecljs

(set-value element new-value)

Sets element's value

Sets element's value
sourceraw docstring

start-please-waitcljs

(start-please-wait)

Display please wait message

Display please wait message
sourceraw docstring

start-progress-barcljs

(start-progress-bar)

Display progress bar message

Display progress bar message
sourceraw docstring

timeoutcljs

(timeout execute-fn delay-time)

Delay function execution by milliseconds

Delay function execution by milliseconds
sourceraw docstring

update-progress-barcljs

(update-progress-bar progress-value & [color1 color2])

Update percentage of progress bar

Update percentage of progress bar
sourceraw docstring

xpathcljs

(xpath selector)

(xpath '//div[contains(text(), 'Searched text')]')

(xpath '//div[contains(text(), 'Searched text')]')
sourceraw docstring

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

× close