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.
sourceraw 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
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close