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.
(append payload)
(append component-id__2638__auto__ payload)
Append HTML to the end of element.
Append HTML to the end of element.
(attributes payload)
(attributes component-id__2638__auto__ payload)
Set element attributes. Nil value removes attribute.
Set element attributes. Nil value removes attribute.
(callback-error payload)
(callback-error component-id__2638__auto__ payload)
Callback error handler.
Callback error handler.
(callback-success payload)
(callback-success component-id__2638__auto__ payload)
Callback success handler.
Callback success handler.
(child-order payload)
(child-order component-id__2638__auto__ payload)
Set order of children
Set order of children
(define-patch-method name
doc
{:keys [type js-eval payload? render-mode target-parent?]
:or
{payload? true render-mode :html target-parent? false}})
(delete)
(delete component-id__2638__auto__)
Delete element.
Delete element.
(delete-many payload)
(delete-many component-id__2638__auto__ payload)
Delete multiple elements.
Delete multiple elements.
(eval-js payload)
(eval-js component-id__2638__auto__ payload)
Eval js with 'this' bound to the live component element
Eval js with 'this' bound to the live component element
(insert-after payload)
(insert-after component-id__2638__auto__ payload)
Insert HTML after the end of component.
Insert HTML after the end of component.
Create a patch message by keyword name
Create a patch message by keyword name
(move-after payload)
(move-after component-id__2638__auto__ payload)
Move existing live component after the end of component.
Move existing live component after the end of component.
(move-first payload)
(move-first component-id__2638__auto__ payload)
Move existing child to be the first child of its parent.
Move existing child to be the first child of its parent.
(move-last payload)
(move-last component-id__2638__auto__ payload)
Move existing child to be the last child of its parent.
Move existing child to be the last child of its parent.
(prepend payload)
(prepend component-id__2638__auto__ payload)
Prepend HTML to the start of element.
Prepend HTML to the start of element.
(replace payload)
(replace component-id__2638__auto__ payload)
Replace the whole element's HTML content.
Replace the whole element's HTML content.
(template payload)
(template component-id__2638__auto__ payload)
Fill element from template
Fill element from template
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close