select(path) |
(string) |
object |
Field Selector. Can be chained. |
- |
update(obj) |
(object) |
- |
Update Fields Values. Will create new fields auomatically. |
- |
submit(obj) |
(object) |
- |
Perform fields validation. After successful validation triggers onSuccess event and onError event in case of validation error. |
- |
validate() |
- |
promise |
Check if the form is valid and return a promise. |
help |
validate(path) |
(string) |
promise |
Takes a field path in input. Check if the field and nested fields are valid and return a promise. |
help |
validate(opt) |
(object) |
promise |
Takes a an object in input with related or showErrors options. |
- |
validate(path, opt) |
(string, object) |
promise |
Takes a field path as first arg. and object as second arg. with related or showErrors options. |
- |
check(computed) |
(string) |
boolean |
Check field computed property. |
- |
check(computed, deep) |
(string, boolean) |
boolean |
Check all nested fields computed property if deep is true |
- |
get() |
- |
object |
Get all field and nested fields data with all props and computed values. |
- |
get(prop) |
(any) |
object |
Get all field filtering by certain props (string or array). |
- |
set(val) |
(any) |
- |
Set field value. Takes the value. |
- |
set(obj) |
(object) |
- |
Provide an object to set nested fields values. |
- |
set(prop, val) |
(string, any) |
- |
Set field property. Takes prop key and prop value. |
- |
set(prop, obj) |
(string, object) |
- |
Provide a prop key and object to set nested fields properties. |
- |
has(key) |
(string) |
- |
Provide Field key to check if exist. |
- |
map(callback) |
(function) |
- |
Map Nested Fields |
- |
reduce(callback, acc) |
(function) |
- |
Reduce Nested Fields |
- |
each(callback) |
(function) |
- |
Iterates over fields and nested fields recursively and invokes a callback which get each field in input. |
- |
add(obj) |
(any) |
any |
Add a Field or Nested Fields. |
- |
del(key) |
(any) |
- |
Delete a Field or Nested Fields by key or path . |
- |
observe(obj) |
(object) |
- |
Define a MobX Observer on Field Props or Field Map. |
- |
intercept(obj) |
(object) |
- |
Define a MobX Interceptor on Field Props or Field Map. |
- |
hasNestedFields() |
- |
boolean |
Check if the form has Nested Fields. |
- |
hasIncrementalKeys() |
- |
boolean |
Check if the nested fields have incremental keys. |
- |