Liking cljdoc? Tell your friends :D
Clojure only.

html.yeah.attrs


optioncljmultimethod

An attribute option is a key added to the schema's option map. If an option key is defined for option, that key can be used in the option map of a schema. Values will be passed to the multimethod. forms is a list. it is a list of list forms. these list forms all assume they are threaded into a (->> attrs-map form-a .... form-z) structure. For example, the ::validate attribute option expects a function (fn [tag schema attrs]) and so the option implementation pre-pends `(~value ~tag ~schema) - assuming an attributes map will be threaded in.

An attribute option is a key added to the schema's option map. If an option key
is defined for option, that key can be used in the option map of a schema. Values
will be passed to the multimethod. forms is a list. it is a list of list forms. these list
forms all assume they are threaded into a (->> attrs-map form-a .... form-z) structure.
For example, the ::validate attribute option expects a function (fn [tag schema attrs]) and so
the option implementation pre-pends `(~value ~tag ~schema) - assuming an attributes map will be threaded in.
raw docstring

optionsclj

(options tag schema opts)

Aggregates all prop-option forms, ensuring that validation happens first

Aggregates all prop-option forms, ensuring that validation happens first
raw docstring

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

× close