Skip to main content
zerotal

Documentation


Documentation / @zerotal/flow / index / ErrorField

Class: ErrorField

Defined in: flow/src/Component.ts:50

Sentinel returned by the Component.errors proxy when a field is accessed as a property (this.errors.email). The JSX compiler detects __isErrorField and emits flow:error + flow:show, so error={this.errors.email} wires up display of that field's first message.

Constructors

Constructor

new ErrorField(field, messages): ErrorField

Defined in: flow/src/Component.ts:54

Parameters

field

string

messages

string[]

Returns

ErrorField

Properties

__isErrorField

readonly __isErrorField: true

Defined in: flow/src/Component.ts:51


__field

readonly __field: string

Defined in: flow/src/Component.ts:52


__value

readonly __value: string

Defined in: flow/src/Component.ts:53