Liking cljdoc? Tell your friends :D

ripley.live.patch

Define patch methods components can use and how they are encoded in messages and evaluated.

Define patch methods components can use and how they are encoded in messages
and evaluated.
raw docstring

appendclj

(append payload)
(append component-id__2655__auto__ payload)

Append HTML to the end of element.

Append HTML to the end of element.
sourceraw docstring

attributesclj

(attributes payload)
(attributes component-id__2655__auto__ payload)

Set element attributes. Nil value removes attribute.

Set element attributes. Nil value removes attribute.
sourceraw docstring

callback-errorclj

(callback-error payload)
(callback-error component-id__2655__auto__ payload)

Callback error handler.

Callback error handler.
sourceraw docstring

callback-successclj

(callback-success payload)
(callback-success component-id__2655__auto__ payload)

Callback success handler.

Callback success handler.
sourceraw docstring

child-orderclj

(child-order payload)
(child-order component-id__2655__auto__ payload)

Set order of children

Set order of children
sourceraw docstring

define-patch-methodcljmacro

(define-patch-method name
                     doc
                     {:keys [type js-eval payload? render-mode target-parent?]
                      :or
                        {payload? true render-mode :html target-parent? false}})
source

deleteclj

(delete)
(delete component-id__2655__auto__)

Delete element.

Delete element.
sourceraw docstring

delete-manyclj

(delete-many payload)
(delete-many component-id__2655__auto__ payload)

Delete multiple elements.

Delete multiple elements.
sourceraw docstring

eval-jsclj

(eval-js payload)
(eval-js component-id__2655__auto__ payload)

Eval js with 'this' bound to the live component element

Eval js with 'this' bound to the live component element
sourceraw docstring

insert-afterclj

(insert-after payload)
(insert-after component-id__2655__auto__ payload)

Insert HTML after the end of component.

Insert HTML after the end of component.
sourceraw docstring

js-eval-scriptcljmultimethod

source

live-client-scriptclj

source

make-patchcljmultimethod

Create a patch message by keyword name

Create a patch message by keyword name
sourceraw docstring

move-afterclj

(move-after payload)
(move-after component-id__2655__auto__ payload)

Move existing live component after the end of component.

Move existing live component after the end of component.
sourceraw docstring

move-firstclj

(move-first payload)
(move-first component-id__2655__auto__ payload)

Move existing child to be the first child of its parent.

Move existing child to be the first child of its parent.
sourceraw docstring

move-lastclj

(move-last payload)
(move-last component-id__2655__auto__ payload)

Move existing child to be the last child of its parent.

Move existing child to be the last child of its parent.
sourceraw docstring

prependclj

(prepend payload)
(prepend component-id__2655__auto__ payload)

Prepend HTML to the start of element.

Prepend HTML to the start of element.
sourceraw docstring

render-modecljmultimethod

source

replaceclj

(replace payload)
(replace component-id__2655__auto__ payload)

Replace the whole element's HTML content.

Replace the whole element's HTML content.
sourceraw docstring

target-parent?cljmultimethod

source

templateclj

(template payload)
(template component-id__2655__auto__ payload)

Fill element from template

Fill element from template
sourceraw docstring

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

× close