Liking cljdoc? Tell your friends :D

reagent.validation

Functions for validating input and setting string errors on fields.

Functions for validating input and setting string errors on fields.
raw docstring

equal-to?cljs

(equal-to? v n)

Returns true if the string represents a number = given.

Returns true if the string represents a number = given.
sourceraw docstring

greater-than?cljs

(greater-than? v n)

Returns true if the string represents a number > given.

Returns true if the string represents a number > given.
sourceraw docstring

has-value?cljs

(has-value? v)

Returns true if v is truthy and not an empty string.

Returns true if v is truthy and not an empty string.
sourceraw docstring

has-values?cljs

(has-values? coll)

Returns true if all members of the collection has-value? This works on maps as well.

Returns true if all members of the collection has-value? This works on maps as well.
sourceraw docstring

is-email?cljs

(is-email? v)

Returns true if v is an email address

Returns true if v is an email address
sourceraw docstring

less-than?cljs

(less-than? v n)

Returns true if the string represents a number < given.

Returns true if the string represents a number < given.
sourceraw docstring

matches-regex?cljs

(matches-regex? v regex)

Returns true if the string matches the given regular expression

Returns true if the string matches the given regular expression
sourceraw docstring

max-length?cljs

(max-length? v len)

Returns true if v is less than or equal to the given len

Returns true if v is less than or equal to the given len
sourceraw docstring

min-length?cljs

(min-length? v len)

Returns true if v is greater than or equal to the given len

Returns true if v is greater than or equal to the given len
sourceraw docstring

not-nil?cljs

(not-nil? v)

Returns true if v is not nil

Returns true if v is not nil
sourceraw docstring

valid-number?cljs

(valid-number? v)

Returns true if the string can be parsed to a Long

Returns true if the string can be parsed to a Long
sourceraw docstring

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

× close