This function should return a formatting function that can be used to format the value if applicable.
Formatting functions should look like this:
(def format-percentage
^{:format-chars #{"%"}}
(fn [value old-value]
value))
Formatting funtion should have a format-chars
meta-data entry, which will be used to correctly position the cursor after formatting. Formatting function should be able to take in the formatted data, extract the value and format the data again. It should also handle corner cases like nil
or empty string.
This function should return a formatting function that can be used to format the value if applicable. Formatting functions should look like this: ```clojure (def format-percentage ^{:format-chars #{"%"}} (fn [value old-value] value)) ``` Formatting funtion should have a `format-chars` meta-data entry, which will be used to correctly position the cursor after formatting. Formatting function should be able to take in the formatted data, extract the value and format the data again. It should also handle corner cases like `nil` or empty string.
This function should return either the initial form data or a promise that will resolve to the inital form data.
This function should return either the initial form data or a promise that will resolve to the inital form data.
This function is called immediately after get-data
in the mount form process. You can return pipeline! from this function.
This function is called immediately after `get-data` in the mount form process. You can return pipeline! from this function.
This function will be called if the submit-data
function throws or rejects the returned promise. It should return a pipeline sideffect or a pipeline.
This function will be called if the `submit-data` function throws or rejects the returned promise. It should return a pipeline sideffect or a pipeline.
This function will be called if the submit-data
function returns a value or resolves a returned promise. It should return a pipeline sideffect or a pipeline.
This function will be called if the `submit-data` function returns a value or resolves a returned promise. It should return a pipeline sideffect or a pipeline.
This function is called before the form is unmounted. You can return pipeline from this function
This function is called before the form is unmounted. You can return pipeline from this function
This function will be called if the update-data
function throws or rejects the returned promise. It should return a new form data state.
This function will be called if the `update-data` function throws or rejects the returned promise. It should return a new form data state.
This function will be called if the update-data
function returns a value or resolves a returned promise. It should return a new form data state.
This function will be called if the `update-data` function returns a value or resolves a returned promise. It should return a new form data state.
This function should return a processing function that can process the new value and return the new form state. If the processing function is returned, data will not be set in the form-state
:data
map. It should be done manually.
Processor functions should look like this, and they should return a new version of a form-state:
(fn [app-db form-props form-state path value]
form-state)
This function should return a processing function that can process the new value and return the new form state. If the processing function is returned, data will not be set in the `form-state` `:data` map. It should be done manually. Processor functions should look like this, and they should return a new version of a form-state: ``` (fn [app-db form-props form-state path value] form-state) ```
This function should return the processed incoming data (returned from the get-data
) function. Use it to prepare the incoming data for the form.
This function should return the processed incoming data (returned from the `get-data`) function. Use it to prepare the incoming data for the form.
This function should return the processed outgoing data that will be passed to the submit-data
function.
This function should return the processed outgoing data that will be passed to the `submit-data` function.
This function should return either the saved form data or a promise that will resolve to the saved form data
This function should return either the saved form data or a promise that will resolve to the saved form data
This function should return either the updated form data or a promise that will resolve to the updated form data
This function should return either the updated form data or a promise that will resolve to the updated form data
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close