FieldArray
Defined in: projects/view-core/field/field-array.ts:9
Extends
Section titled “Extends”FieldGroupbase<TValue>
Extended by
Section titled “Extended by”Type Parameters
Section titled “Type Parameters”TValue
Section titled “TValue”TValue = any
TControl
Section titled “TControl”TControl extends AbstractControl<any> = any
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new FieldArray<
TValue,TControl>(rawSchema,injector):FieldArray<TValue,TControl>
Defined in: projects/view-core/field/abstract_model.ts:378
Parameters
Section titled “Parameters”rawSchema
Section titled “rawSchema”SchemaOrPipe
injector
Section titled “injector”Injector
Returns
Section titled “Returns”FieldArray<TValue, TControl>
Inherited from
Section titled “Inherited from”FieldGroupbase<TValue>.constructor
Properties
Section titled “Properties”asyncError$$
Section titled “asyncError$$”asyncError$$:
Signal<"PENDING"| (ValidationValibotError2|ValidationErrorError2|ValidationDescendantError2|ValidationCommonError2)[] |undefined>
Defined in: projects/view-core/field/abstract_model.ts:288
Inherited from
Section titled “Inherited from”FieldGroupbase.asyncError$$
asyncErrorRes$$
Section titled “asyncErrorRes$$”asyncErrorRes$$:
Signal<Signal<typeofValidatorPending| (ValidationValibotError2|ValidationErrorError2|ValidationDescendantError2|ValidationCommonError2)[] |undefined> |undefined>
Defined in: projects/view-core/field/abstract_model.ts:242
Inherited from
Section titled “Inherited from”FieldGroupbase.asyncErrorRes$$
children$$
Section titled “children$$”children$$:
Signal<AbstractControl<any>[]>
Defined in: projects/view-core/field/field-array.ts:22
通用的子级,用于查询之类
Overrides
Section titled “Overrides”FieldGroupbase.children$$
config$
Section titled “config$”config$:
FieldFormConfig$
Defined in: projects/view-core/field/abstract_model.ts:476
Inherited from
Section titled “Inherited from”FieldGroupbase.config$
context
Section titled “context”context:
any
Defined in: projects/view-core/field/abstract_model.ts:377
Inherited from
Section titled “Inherited from”FieldGroupbase.context
dirty$$
Section titled “dirty$$”
readonlydirty$$:Signal<boolean>
Defined in: projects/view-core/field/abstract_model.ts:159
Inherited from
Section titled “Inherited from”FieldGroupbase.dirty$$
disabled$$
Section titled “disabled$$”
readonlydisabled$$:Signal<boolean>
Defined in: projects/view-core/field/abstract_model.ts:124
self || parent
Inherited from
Section titled “Inherited from”FieldGroupbase.disabled$$
enabled$$
Section titled “enabled$$”
readonlyenabled$$:Signal<boolean>
Defined in: projects/view-core/field/abstract_model.ts:127
Inherited from
Section titled “Inherited from”FieldGroupbase.enabled$$
fixedControls$
Section titled “fixedControls$”fixedControls$:
WritableSignal<AbstractControl<any>[]>
Defined in: projects/view-core/field/field-array.ts:27
injector
Section titled “injector”
readonlyinjector:Injector
Defined in: projects/view-core/field/abstract_model.ts:106
Inherited from
Section titled “Inherited from”FieldGroupbase.injector
isOptionalEmpty
Section titled “isOptionalEmpty”isOptionalEmpty:
Signal<boolean>
Defined in: projects/view-core/field/abstract_model.ts:177
Inherited from
Section titled “Inherited from”FieldGroupbase.isOptionalEmpty
originValue$$
Section titled “originValue$$”originValue$$:
Signal<any>
Defined in: projects/view-core/field/field-array.ts:15
Overrides
Section titled “Overrides”FieldGroupbase.originValue$$
pendingStatus
Section titled “pendingStatus”pendingStatus:
WritableSignal<{change:boolean;touched:boolean;value:undefined; }>
Defined in: projects/view-core/field/abstract_model.ts:91
Inherited from
Section titled “Inherited from”FieldGroupbase.pendingStatus
rawError$$
Section titled “rawError$$”rawError$$:
Signal<"PENDING"|ValidationErrors2[] |undefined>
Defined in: projects/view-core/field/abstract_model.ts:304
Inherited from
Section titled “Inherited from”FieldGroupbase.rawError$$
required$$
Section titled “required$$”required$$:
Signal<boolean|undefined>
Defined in: projects/view-core/field/abstract_model.ts:375
Inherited from
Section titled “Inherited from”FieldGroupbase.required$$
resetControls$
Section titled “resetControls$”resetControls$:
WritableSignal<AbstractControl<any>[]>
Defined in: projects/view-core/field/field-array.ts:28
resetValue$
Section titled “resetValue$”resetValue$:
WritableSignal<any>
Defined in: projects/view-core/field/field-group-base.ts:13
Inherited from
Section titled “Inherited from”FieldGroupbase.resetValue$
schemaParser
Section titled “schemaParser”
readonlyschemaParser:SafeParser<SchemaOrPipe,undefined>
Defined in: projects/view-core/field/abstract_model.ts:376
Inherited from
Section titled “Inherited from”FieldGroupbase.schemaParser
selfDisabled$$
Section titled “selfDisabled$$”
readonlyselfDisabled$$:Signal<boolean>
Defined in: projects/view-core/field/abstract_model.ts:122
disabled
Inherited from
Section titled “Inherited from”FieldGroupbase.selfDisabled$$
selfTouched$
Section titled “selfTouched$”
readonlyselfTouched$:WritableSignal<boolean>
Defined in: projects/view-core/field/abstract_model.ts:141
touched
Inherited from
Section titled “Inherited from”FieldGroupbase.selfTouched$
shouldEmitValue$$
Section titled “shouldEmitValue$$”shouldEmitValue$$:
Signal<boolean>
Defined in: projects/view-core/field/abstract_model.ts:96
Inherited from
Section titled “Inherited from”FieldGroupbase.shouldEmitValue$$
shouldInclude$$
Section titled “shouldInclude$$”shouldInclude$$:
Signal<boolean>
Defined in: projects/view-core/field/abstract_model.ts:102
父级取值时,当前子级是否包含在内
Inherited from
Section titled “Inherited from”FieldGroupbase.shouldInclude$$
status$$
Section titled “status$$”status$$:
Signal<VALID_STATUS>
Defined in: projects/view-core/field/abstract_model.ts:535
Inherited from
Section titled “Inherited from”FieldGroupbase.status$$
syncError$
Section titled “syncError$”syncError$:
WritableSignal<ValidationErrors2[] |undefined>
Defined in: projects/view-core/field/abstract_model.ts:187
Inherited from
Section titled “Inherited from”FieldGroupbase.syncError$
touched$$
Section titled “touched$$”
readonlytouched$$:Signal<boolean>
Defined in: projects/view-core/field/abstract_model.ts:143
Inherited from
Section titled “Inherited from”FieldGroupbase.touched$$
updateOn$$
Section titled “updateOn$$”updateOn$$:
Signal<FormHooks>
Defined in: projects/view-core/field/abstract_model.ts:406
Inherited from
Section titled “Inherited from”FieldGroupbase.updateOn$$
value$$
Section titled “value$$”value$$:
Signal<TValue>
Defined in: projects/view-core/field/abstract_model.ts:109
model的value
Inherited from
Section titled “Inherited from”FieldGroupbase.value$$
valueNoError$$
Section titled “valueNoError$$”valueNoError$$:
Signal<boolean>
Defined in: projects/view-core/field/abstract_model.ts:319
Inherited from
Section titled “Inherited from”FieldGroupbase.valueNoError$$
Accessors
Section titled “Accessors”controls
Section titled “controls”Get Signature
Section titled “Get Signature”get controls():
AbstractControl<any>[]
Defined in: projects/view-core/field/field-array.ts:29
Returns
Section titled “Returns”AbstractControl<any>[]
Get Signature
Section titled “Get Signature”get dirty():
boolean
Defined in: projects/view-core/field/abstract_model.ts:166
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”FieldGroupbase.dirty
disabled
Section titled “disabled”Get Signature
Section titled “Get Signature”get disabled():
boolean
Defined in: projects/view-core/field/abstract_model.ts:128
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”FieldGroupbase.disabled
enabled
Section titled “enabled”Get Signature
Section titled “Get Signature”get enabled():
boolean
Defined in: projects/view-core/field/abstract_model.ts:131
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”FieldGroupbase.enabled
errors
Section titled “errors”Get Signature
Section titled “Get Signature”get errors():
ValidationErrors2[] |undefined
Defined in: projects/view-core/field/abstract_model.ts:320
Returns
Section titled “Returns”ValidationErrors2[] | undefined
Inherited from
Section titled “Inherited from”FieldGroupbase.errors
fieldPath
Section titled “fieldPath”Get Signature
Section titled “Get Signature”get fieldPath(): (
string|number)[]
Defined in: projects/view-core/field/abstract_model.ts:366
Returns
Section titled “Returns”(string | number)[]
Inherited from
Section titled “Inherited from”FieldGroupbase.fieldPath
invalid
Section titled “invalid”Get Signature
Section titled “Get Signature”get invalid():
boolean
Defined in: projects/view-core/field/abstract_model.ts:397
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”FieldGroupbase.invalid
length
Section titled “length”Get Signature
Section titled “Get Signature”get length():
number
Defined in: projects/view-core/field/field-array.ts:72
Returns
Section titled “Returns”number
parent
Section titled “parent”Get Signature
Section titled “Get Signature”get parent():
AbstractControl<any> |undefined
Defined in: projects/view-core/field/abstract_model.ts:326
Returns
Section titled “Returns”AbstractControl<any> | undefined
Inherited from
Section titled “Inherited from”FieldGroupbase.parent
pending
Section titled “pending”Get Signature
Section titled “Get Signature”get pending():
boolean
Defined in: projects/view-core/field/abstract_model.ts:401
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”FieldGroupbase.pending
pristine
Section titled “pristine”Get Signature
Section titled “Get Signature”get pristine():
boolean
Defined in: projects/view-core/field/abstract_model.ts:169
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”FieldGroupbase.pristine
Get Signature
Section titled “Get Signature”get root():
AbstractControl
Defined in: projects/view-core/field/abstract_model.ts:463
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”FieldGroupbase.root
statusChanges
Section titled “statusChanges”Get Signature
Section titled “Get Signature”get statusChanges():
Observable<VALID_STATUS>
Defined in: projects/view-core/field/abstract_model.ts:563
Returns
Section titled “Returns”Observable<VALID_STATUS>
Inherited from
Section titled “Inherited from”FieldGroupbase.statusChanges
touched
Section titled “touched”Get Signature
Section titled “Get Signature”get touched():
boolean
Defined in: projects/view-core/field/abstract_model.ts:150
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”FieldGroupbase.touched
untouched
Section titled “untouched”Get Signature
Section titled “Get Signature”get untouched():
boolean
Defined in: projects/view-core/field/abstract_model.ts:153
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”FieldGroupbase.untouched
Get Signature
Section titled “Get Signature”get valid():
boolean
Defined in: projects/view-core/field/abstract_model.ts:393
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”FieldGroupbase.valid
Get Signature
Section titled “Get Signature”get value():
TValue
Defined in: projects/view-core/field/abstract_model.ts:372
Returns
Section titled “Returns”TValue
Inherited from
Section titled “Inherited from”FieldGroupbase.value
valueChanges
Section titled “valueChanges”Get Signature
Section titled “Get Signature”get valueChanges():
Observable<any>
Defined in: projects/view-core/field/abstract_model.ts:520
Returns
Section titled “Returns”Observable<any>
Inherited from
Section titled “Inherited from”FieldGroupbase.valueChanges
valueEvent$$
Section titled “valueEvent$$”Get Signature
Section titled “Get Signature”get valueEvent$$():
Observable<ValueEvent>
Defined in: projects/view-core/field/field-array.ts:39
Returns
Section titled “Returns”Observable<ValueEvent>
Overrides
Section titled “Overrides”FieldGroupbase.valueEvent$$
valuePath
Section titled “valuePath”Get Signature
Section titled “Get Signature”get valuePath(): (
string|number)[]
Defined in: projects/view-core/field/abstract_model.ts:360
Returns
Section titled “Returns”(string | number)[]
Inherited from
Section titled “Inherited from”FieldGroupbase.valuePath
Methods
Section titled “Methods”activatedChildren()
Section titled “activatedChildren()”activatedChildren():
Iterable<[string|number,AbstractControl<any>]>
Defined in: projects/view-core/field/field-array.ts:32
Returns
Section titled “Returns”Iterable<[string | number, AbstractControl<any>]>
Overrides
Section titled “Overrides”FieldGroupbase.activatedChildren
clear()
Section titled “clear()”clear():
void
Defined in: projects/view-core/field/field-array.ts:128
Returns
Section titled “Returns”void
disable()
Section titled “disable()”disable():
void
Defined in: projects/view-core/field/abstract_model.ts:137
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”FieldGroupbase.disable
emitSubmit()
Section titled “emitSubmit()”emitSubmit():
void
Defined in: projects/view-core/field/field-group-base.ts:82
仅触发 updateOn: submit 时使用
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”FieldGroupbase.emitSubmit
enable()
Section titled “enable()”enable():
void
Defined in: projects/view-core/field/abstract_model.ts:134
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”FieldGroupbase.enable
find()
Section titled “find()”find(
key):AbstractControl
Defined in: projects/view-core/field/field-array.ts:142
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”Overrides
Section titled “Overrides”FieldGroupbase.find
get<
P>(path):AbstractControl<any> |null
Defined in: projects/view-core/field/abstract_model.ts:452
Type Parameters
Section titled “Type Parameters”P extends string | (string | number)[]
Parameters
Section titled “Parameters”P
Returns
Section titled “Returns”AbstractControl<any> | null
Inherited from
Section titled “Inherited from”FieldGroupbase.get
getRawValue()
Section titled “getRawValue()”getRawValue(
mode?):any
Defined in: projects/view-core/field/field-array.ts:123
Parameters
Section titled “Parameters”ValueType = ValueType.allPartialValid
Returns
Section titled “Returns”any
Overrides
Section titled “Overrides”FieldGroupbase.getRawValue
getValueByType()
Section titled “getValueByType()”getValueByType(
mode?):any
Defined in: projects/view-core/field/field-array.ts:76
Parameters
Section titled “Parameters”ValueType = ValueType.allPartialValid
Returns
Section titled “Returns”any
markAllAsDirty()
Section titled “markAllAsDirty()”markAllAsDirty():
void
Defined in: projects/view-core/field/abstract_model.ts:414
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”FieldGroupbase.markAllAsDirty
markAllAsPristine()
Section titled “markAllAsPristine()”markAllAsPristine():
void
Defined in: projects/view-core/field/abstract_model.ts:419
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”FieldGroupbase.markAllAsPristine
markAllAsTouched()
Section titled “markAllAsTouched()”markAllAsTouched():
void
Defined in: projects/view-core/field/abstract_model.ts:424
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”FieldGroupbase.markAllAsTouched
markAllAsUntouched()
Section titled “markAllAsUntouched()”markAllAsUntouched():
void
Defined in: projects/view-core/field/abstract_model.ts:428
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”FieldGroupbase.markAllAsUntouched
markAsDirty()
Section titled “markAsDirty()”markAsDirty():
void
Defined in: projects/view-core/field/abstract_model.ts:436
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”FieldGroupbase.markAsDirty
markAsPristine()
Section titled “markAsPristine()”markAsPristine():
void
Defined in: projects/view-core/field/abstract_model.ts:440
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”FieldGroupbase.markAsPristine
markAsTouched()
Section titled “markAsTouched()”markAsTouched():
void
Defined in: projects/view-core/field/abstract_model.ts:410
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”FieldGroupbase.markAsTouched
markAsUntouched()
Section titled “markAsUntouched()”markAsUntouched():
void
Defined in: projects/view-core/field/abstract_model.ts:432
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”FieldGroupbase.markAsUntouched
removeRestControl()
Section titled “removeRestControl()”removeRestControl(
key):void
Defined in: projects/view-core/field/field-array.ts:50
Parameters
Section titled “Parameters”number
Returns
Section titled “Returns”void
reset()
Section titled “reset()”reset(
value?):void
Defined in: projects/view-core/field/field-group-base.ts:67
Parameters
Section titled “Parameters”value?
Section titled “value?”any
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”FieldGroupbase.reset
setControl()
Section titled “setControl()”setControl(
key,control):void
Defined in: projects/view-core/field/field-array.ts:61
Parameters
Section titled “Parameters”number
control
Section titled “control”TControl
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”FieldGroupbase.setControl
setParent()
Section titled “setParent()”setParent(
parent):void
Defined in: projects/view-core/field/abstract_model.ts:390
Parameters
Section titled “Parameters”parent
Section titled “parent”AbstractControl<any> | undefined
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”FieldGroupbase.setParent
updateValue()
Section titled “updateValue()”updateValue(
value):void
Defined in: projects/view-core/field/field-group-base.ts:49
Parameters
Section titled “Parameters”any
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”FieldGroupbase.updateValue