Liking cljdoc? Tell your friends :D

com.fulcrologic.rad.ui-validation


invalid-attribute-value?clj/s

(invalid-attribute-value?
  {:com.fulcrologic.rad.form/keys [form-instance master-form] :as env}
  attribute)

Returns true if the given attribute is invalid in the given form env context. This is meant to be used in UI functions, not resolvers/mutations. If there is a validator defined on the form it completely overrides all attribute validators.

Returns true if the given `attribute` is invalid in the given form `env` context. This is meant to be used in UI
functions, not resolvers/mutations. If there is a validator defined on the form it completely overrides all
attribute validators.
sourceraw docstring

validation-error-messageclj/s

(validation-error-message
  {:com.fulcrologic.rad.form/keys [form-instance master-form] :as env}
  {:keys [:com.fulcrologic.rad.form/validation-message
          :com.fulcrologic.rad.attributes/qualified-key]
   :as attribute})

Get the string that should be shown for the error message on a given attribute in the given form context.

Get the string that should be shown for the error message on a given attribute in the given form context.
sourceraw docstring

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

× close