new Boolean(name, type, schema, value, $endpoint, service, $states, relationName)
Apy Boolean Field
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Field name |
type |
string | Field type |
schema |
Object | Field schema |
value |
Object | Field value |
$endpoint |
string | Field endpoint |
service |
Object | Reference to Service instance |
$states |
Object | Field inner state holder instance |
relationName |
string | (optional) Field relation name |
Extends
Methods
-
<static> cleanedData()
-
Return a boolean value
Returns:
Field value
- Type
- boolean
-
<static> cloneValue(value)
-
Clone the value. Ensure to always return a Boolean value (avoid undefined)
Parameters:
Name Type Description value
boolean A boolean or undefined value
Returns:
The cloned boolean value
- Type
- boolean
-
<static> hasUpdated()
-
Fix parent behavior by ensuring boolean value.
Returns:
Is the Field updated ?
- Type
- boolean