(constructor validator)
(constructor validator path)
(constructor validator path data)
(constructor validator path data opts)
Form constructor. It accepts the following arguments:
validator
- returned either by the form.validator/validator
or form.validator/comp-validators
functionpath
- path in the db where to put the formdata
- initial data mapopts
- map with the form options:
:on-commit
- function to be called when the form is commited (by calling (commit! form)
):auto-validate?
- should the form be validated on any data changeForm constructor. It accepts the following arguments: - `validator` - returned either by the `form.validator/validator` or `form.validator/comp-validators` function - `path` - path in the db where to put the form - `data` - initial data map - `opts` - map with the form options: + `:on-commit` - function to be called when the form is commited (by calling `(commit! form)`) + `:auto-validate?` - should the form be validated on any data change
(errors-keypaths data)
(errors-keypaths data path results)
Calculates the error key paths from the error map. It is used to mark all invalid key paths as dirty
Calculates the error key paths from the error map. It is used to mark all invalid key paths as dirty
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close