Liking cljdoc? Tell your friends :D

reformation.core


atom?clj/s

(atom? a)

A CLJC implementation of atom?

A CLJC implementation of atom?
sourceraw docstring

base-text-on-changeclj/s

(base-text-on-change {:keys [UPDATE valpath event]})

Basic text on-change event handler. :UPDATE update function passed on, changing elements at :valpath according to the value got from synthetic event event

Basic text on-change event handler.
`:UPDATE` update function passed on, changing elements at
`:valpath` according to the value got from
synthetic event `event`
sourceraw docstring

check-form-validationclj/s

(check-form-validation)
source

checkboxclj/s

(checkbox {:keys [_READ UPDATE valpath] :as fn-map}
          {:keys [validation-function disabled style-classes default-value]
           :as _input-map})

Create a checkbox

Create a checkbox
sourceraw docstring

checksetclj/s

(checkset {:keys [READ UPDATE valpath default-value]})

If a checkbox value is nil, set it; otherwise, return it.

If a checkbox value is nil, set it; otherwise, return it.
sourceraw docstring

divclj/s

(div {:keys [READ valpath] :as _fn-map-with-path}
     &
     [{:keys [style-classes] :as _opt-map}])

produce a div, usually for review-versions from a textarea

produce a div, usually for review-versions from a textarea
sourceraw docstring

fm-map-atomclj/s

This atom is set when render-application is called

This atom is set when render-application is called
sourceraw docstring

from-dictionaryclj/s

(from-dictionary dictionary k)

Return valid entries k from dictionary, or error meaningfully

Return valid entries `k` from `dictionary`, or error meaningfully
sourceraw docstring

get-given-valueclj/s

(get-given-value {:keys [value default-value]})

Get the given value, given a warning if :value is being mis-used

Get the given value, given a warning if `:value` is being mis-used
sourceraw docstring

hidden-inputclj/s

(hidden-input input-map)

Generate a hidden input

Generate a hidden input
sourceraw docstring

invalid-feedback-elclj/s

(invalid-feedback-el invalid-feedback)
source

keywordize-formclj/s

(keywordize-form fm dictionary)

Transform all keyword values in the form fm into their dictionary lookups

Transform all keyword values in the form `fm` into their `dictionary` lookups
sourceraw docstring

map-structureclj/s

(map-structure v)

Produce a map with the same key-structure from the vector

Produce a map with the same key-structure from the vector
sourceraw docstring

radioclj/s

(radio {:keys [options on-change]})
source

render-applicationclj/s

(render-application fm fn-map-or-atom & [pathv])

Render the editable application.

fm is the schema of the application, a vector laying out the fields and their attributes. fn-map is either an Atom to hold the information a user inputs, or a map that must with:

:READ a function that takes args with the same signature as get-in :UPDATE a function that takes args with the same signature as update-in :DICTIONARY(optional) a map of keyword to reformation-compatible structures

Render the editable application.

`fm` is the schema of the application, a vector laying out the fields and their attributes.
`fn-map` is either an Atom to hold the information a user inputs, or a map that must with:

`:READ` a function that takes args with the same signature as get-in
`:UPDATE` a function that takes args with the same signature as update-in
`:DICTIONARY`(optional) a map of keyword to reformation-compatible structures
sourceraw docstring

render-labelclj/s

(render-label {:keys [for-id label-text]})

Create a label to go into a .row

Create a label to go into a .row
sourceraw docstring

render-reviewclj/s

(render-review schema application)

Parse the application map and render the review based on the ordered schema of the application, with values in application expected to be as given by render-application, as an atom or not. Resulting form will be read-only with no changes possible.

Parse the application map and render the review based on the ordered `schema` of the application, with values in `application` expected to be as given by `render-application`, as an atom or not.
Resulting form will be read-only with no changes possible.
sourceraw docstring

report-form-validationclj/s

(report-form-validation)

Creates a popup informing the user which 'required' fields are filled in improperly, doesn't work unless render-application has been called first.

Creates a popup informing the user which 'required' fields are filled in improperly, doesn't work unless render-application has been called first.
sourceraw docstring

reset-defaultclj/s

(reset-default default-schema-vec)
(reset-default A default-schema-vec)

Reset the given atom to a default state based on a default map, where it will possess each of the (possibly nested) structural elements of the given default, but values only according to an internal :default

Reset the given atom to a default state based on a default map, where it will possess each of the (possibly nested) structural elements of the given default, but values only according to an internal :default
sourceraw docstring

sanitize-dom-argsclj/s

(sanitize-dom-args opt-map)

Remove args that the react doesn't like from the opt-map, to be used right before a dom element is specified

Remove args that the react doesn't like from the `opt-map`,
to be used right before a dom element is specified
sourceraw docstring

select-boxclj/s

(select-box m)
source

substructure?clj/s

Determine whether an item is a valid substructure for a form

Determine whether an item is a valid substructure for a form
sourceraw docstring

text-areaclj/s

(text-area {:keys [READ _UPDATE _DICTIONARY valpath] :as _fn-map-with-path}
           opt-map)

Renders :type :textarea elements. In addition to the usual opts includes optional :rows and cols for the html "rows=" and "cols=" attributes.

Renders `:type :textarea` elements. In addition to the usual
opts includes optional `:rows` and `cols` for the html "rows="
and "cols=" attributes.
sourceraw docstring

text-inputclj/s

(text-input {:keys [READ valpath] :as _fn-map-with-path} opt-map)

Generate a regular text input, sanitizing the args

Generate a regular text input, sanitizing the args
sourceraw docstring

tinputclj/s

(tinput {:keys [READ UPDATE _DICTIONARY] :as fn-map} valpath & [opt-map])

Produce data-bound inputs for a given map, using :READ and :UPDATE for values and changes. opt-map specifies options including display variables.

Produce data-bound inputs for a given map, using `:READ` and `:UPDATE` for values and changes. `opt-map` specifies options including display variables.
sourceraw docstring

to-validationclj/s

(to-validation f & [error-message])

Given a predicate, wrap it properly to be a validation function for tinput. Validation function runs on the input at earlier-given :timing (default every change), altering the validity of the element as prescribed. It waits for .checkValidity on the input to explain the error

Given a predicate, wrap it properly to be a validation function for tinput.
Validation function runs on the input at earlier-given `:timing` (default every change), altering the validity of the element as prescribed. It waits for .checkValidity on the input to explain the error
sourceraw docstring

toggleboxclj/s

(togglebox {:keys [_label content valpath _READ _UPDATE _default-value
                   override-inline? open-height disabled _style-classes]
            :or {open-height "5em"}
            :as opt-map})

Builds a group which, when toggled, displays its :content

Builds a group which, when toggled, displays its `:content`
sourceraw docstring

validate-email-addressclj/s

(validate-email-address s)

regexp check for whether s is a valid (legal) email address

see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/email#validation

regexp check for whether `s` is a valid (legal) email address

see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/email#validation
sourceraw docstring

validation-function?clj/s

(validation-function? f)
source

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

× close