Class: Nested

.fields. Nested


new Nested(name, type, schema, value, $endpoint, service, $states, relationName)

Apy Nested 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> cloneValue(value)

Nested field - clone a value

Parameters:
Name Type Description
value Object

Nested field value

Returns:

cloned value

Type
Object

<static> validate()

Validate each component if error, all errors are collected before being thrown.

Throws:

when validation fails

Type
apy.errors.Error