Liking cljdoc? Tell your friends :D
ClojureScript only.

reacl-c-basics.forms.methods


ajaxcljs

(ajax f & args)

Returns a value suitable to use as a :method attribute in reacl-c-basics.forms.core/form.

This is similar to [[subcription]], but (f state & args) must return an ajax request, which is then executed to submit the form.

The :onComplete event handler is called with the response of the ajax call

While the ajax call is running, the content of the form is automatically disabled, unless the :no-disable? attribute is true on the form.

Returns a value suitable to use as a `:method` attribute in [[reacl-c-basics.forms.core/form]].

This is similar to [[subcription]], but `(f state & args)` must
return an ajax request, which is then executed to submit the form.

The `:onComplete` event handler is called with the response of the ajax call

While the ajax call is running, the content of the form is
automatically disabled, unless the `:no-disable?` attribute is true
on the form.
sourceraw docstring

subscriptioncljs

(subscription f & args)

Returns a value suitable to use as a :method attribute in reacl-c-basics.forms.core/form.

When using this method in a form, then on form submit, (f state & args) is called per default, which must return a subscription item. That item is then used until it delivers a result.

The :onComplete event handler is called with the result of the subscription.

While the subscription result is pending, the content of the form is automatically disabled, unless the :no-disable? attribute is true on the form.

Returns a value suitable to use as a `:method` attribute in [[reacl-c-basics.forms.core/form]].

When using this method in a form, then on form submit, `(f state &
args)` is called per default, which must return a subscription item.
That item is then used until it delivers a result.

The `:onComplete` event handler is called with the result of the subscription.

While the subscription result is pending, the content of the form is
automatically disabled, unless the `:no-disable?` attribute is true
on the form.
sourceraw docstring

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

× close