Base mixin to be coupled to ComponentMixin for Field Classes
Methods
-
<static> cleanedData()
-
Logic Field base to get cleaned data
Returns:
Field's
$valueproperty value- Type
- *
-
<static> selfCommit()
-
Common method to definitely set the updated field's values, after a successful Request to the backend has been acknowledged.
$memoattribute is overridden by the current$valueReturns:
this -
<static> selfUpdate(update, commit)
-
Allow one Field component to update itself.
Parameters:
Name Type Description updateObject The update payload
commitboolean If true,
selfCommitmethod is invokedReturns:
this -
<static> setOptions(schema)
-
Field' schemas object setter
Parameters:
Name Type Description schemaObject Field schema
Returns:
this -
<static> setValue(value)
-
Field's value setter
Parameters:
Name Type Description valueObject Field value
Returns:
this -
<static> validate()
-
Validate each component if error, all errors are collected before being thrown.
Throws:
-
when validation fails
- Type
- apy.errors.Error
-
-
<inner> _errorMsg()
-
Format a validation error message
Returns:
A formatted error message
- Type
- string