Constructor
new Base(props)
Parameters:
Name | Type | Description |
---|---|---|
props |
Object | @see Allowed propTypes |
- Source:
Members
name
Get control value
- Source:
propTypes
Properties:
Name | Type | Description |
---|---|---|
component |
* | Component to render as a control |
isEmpty |
function | Check if value is empty |
validators |
Array | List of validators |
showErrorOn |
Array | List of controlState keys. Display error only if all of values of specified keys are |
multipleError |
bool | If |
initialValue |
* | Initial value for control |
mapProps |
Object.<string, function()> | Add new props to component |
getValue |
function | Accepts event after control changed and returns value |
controlClassName |
String |
|
- Source:
value
Current value of control
- Source:
Methods
getErrors() → {Array}
Get all errors for current value
- Source:
Returns:
- Type
- Array
reset()
Resets value and controlState of control
- Source:
setError(errs)
Set externalErrors to controls
Parameters:
Name | Type | Description |
---|---|---|
errs |
* | Accepts array, object or string |
- Source:
setValue(val)
Set control value
Parameters:
Name | Type | Description |
---|---|---|
val |
* | Value to set |
- Source: