FieldControl
Defined in: projects/view-angular-core/field/field-control.ts:13
Extends
Section titled “Extends”AbstractControl<TValue>
Type Parameters
Section titled “Type Parameters”TValue
Section titled “TValue”TValue = any
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new FieldControl<
TValue>(rawSchema,injector):FieldControl<TValue>
Defined in: projects/view-angular-core/field/abstract_model.ts:378
Parameters
Section titled “Parameters”rawSchema
Section titled “rawSchema”SchemaOrPipe
injector
Section titled “injector”Injector
Returns
Section titled “Returns”FieldControl<TValue>
Inherited from
Section titled “Inherited from”Properties
Section titled “Properties”asyncError$$
Section titled “asyncError$$”asyncError$$:
Signal<"PENDING"| (ValidationValibotError2|ValidationErrorError2|ValidationDescendantError2|ValidationCommonError2)[] |undefined>
Defined in: projects/view-angular-core/field/abstract_model.ts:288
Inherited from
Section titled “Inherited from”asyncErrorRes$$
Section titled “asyncErrorRes$$”asyncErrorRes$$:
Signal<Signal<typeofValidatorPending| (ValidationValibotError2|ValidationErrorError2|ValidationDescendantError2|ValidationCommonError2)[] |undefined> |undefined>
Defined in: projects/view-angular-core/field/abstract_model.ts:242
Inherited from
Section titled “Inherited from”AbstractControl.asyncErrorRes$$
children$$?
Section titled “children$$?”
optionalchildren$$?:Signal<{[s:string]:AbstractControl<any>; } |ArrayLike<AbstractControl<any>>>
Defined in: projects/view-angular-core/field/abstract_model.ts:115
通用的子级,用于查询之类
Inherited from
Section titled “Inherited from”config$
Section titled “config$”config$:
FieldFormConfig$
Defined in: projects/view-angular-core/field/abstract_model.ts:476
Inherited from
Section titled “Inherited from”context
Section titled “context”context:
any
Defined in: projects/view-angular-core/field/abstract_model.ts:377
Inherited from
Section titled “Inherited from”dirty$$
Section titled “dirty$$”
readonlydirty$$:Signal<boolean>
Defined in: projects/view-angular-core/field/abstract_model.ts:159
Inherited from
Section titled “Inherited from”disabled$$
Section titled “disabled$$”
readonlydisabled$$:Signal<boolean>
Defined in: projects/view-angular-core/field/abstract_model.ts:124
self || parent
Inherited from
Section titled “Inherited from”enabled$$
Section titled “enabled$$”
readonlyenabled$$:Signal<boolean>
Defined in: projects/view-angular-core/field/abstract_model.ts:127
Inherited from
Section titled “Inherited from”injector
Section titled “injector”
readonlyinjector:Injector
Defined in: projects/view-angular-core/field/abstract_model.ts:106
Inherited from
Section titled “Inherited from”isOptionalEmpty
Section titled “isOptionalEmpty”isOptionalEmpty:
Signal<boolean>
Defined in: projects/view-angular-core/field/abstract_model.ts:177
Inherited from
Section titled “Inherited from”AbstractControl.isOptionalEmpty
modelValue$
Section titled “modelValue$”modelValue$:
WritableSignal<TValue|undefined>
Defined in: projects/view-angular-core/field/field-control.ts:19
model输入值
modelValueToViewValue$$
Section titled “modelValueToViewValue$$”modelValueToViewValue$$:
Signal<any>
Defined in: projects/view-angular-core/field/field-control.ts:29
传入到view中的值
originValue$$
Section titled “originValue$$”originValue$$:
WritableSignal<any>
Defined in: projects/view-angular-core/field/field-control.ts:38
modelValue + viewValue => modelValue
Overrides
Section titled “Overrides”pendingStatus
Section titled “pendingStatus”pendingStatus:
WritableSignal<{change:boolean;touched:boolean;value:undefined; }>
Defined in: projects/view-angular-core/field/abstract_model.ts:91
Inherited from
Section titled “Inherited from”rawError$$
Section titled “rawError$$”rawError$$:
Signal<"PENDING"|ValidationErrors2[] |undefined>
Defined in: projects/view-angular-core/field/abstract_model.ts:304
Inherited from
Section titled “Inherited from”required$$
Section titled “required$$”required$$:
Signal<boolean|undefined>
Defined in: projects/view-angular-core/field/abstract_model.ts:375
Inherited from
Section titled “Inherited from”schemaParser
Section titled “schemaParser”
readonlyschemaParser:SafeParser<SchemaOrPipe,undefined>
Defined in: projects/view-angular-core/field/abstract_model.ts:376
Inherited from
Section titled “Inherited from”selfDisabled$$
Section titled “selfDisabled$$”
readonlyselfDisabled$$:Signal<boolean>
Defined in: projects/view-angular-core/field/abstract_model.ts:122
disabled
Inherited from
Section titled “Inherited from”AbstractControl.selfDisabled$$
selfTouched$
Section titled “selfTouched$”
readonlyselfTouched$:WritableSignal<boolean>
Defined in: projects/view-angular-core/field/abstract_model.ts:141
touched
Inherited from
Section titled “Inherited from”shouldEmitValue$$
Section titled “shouldEmitValue$$”shouldEmitValue$$:
Signal<boolean>
Defined in: projects/view-angular-core/field/abstract_model.ts:96
Inherited from
Section titled “Inherited from”AbstractControl.shouldEmitValue$$
shouldInclude$$
Section titled “shouldInclude$$”shouldInclude$$:
Signal<boolean>
Defined in: projects/view-angular-core/field/abstract_model.ts:102
父级取值时,当前子级是否包含在内
Inherited from
Section titled “Inherited from”AbstractControl.shouldInclude$$
status$$
Section titled “status$$”status$$:
Signal<VALID_STATUS>
Defined in: projects/view-angular-core/field/abstract_model.ts:535
Inherited from
Section titled “Inherited from”syncError$
Section titled “syncError$”syncError$:
WritableSignal<ValidationErrors2[] |undefined>
Defined in: projects/view-angular-core/field/abstract_model.ts:187
Inherited from
Section titled “Inherited from”touched$$
Section titled “touched$$”
readonlytouched$$:Signal<boolean>
Defined in: projects/view-angular-core/field/abstract_model.ts:143
Inherited from
Section titled “Inherited from”updateOn$$
Section titled “updateOn$$”updateOn$$:
Signal<FormHooks>
Defined in: projects/view-angular-core/field/abstract_model.ts:406
Inherited from
Section titled “Inherited from”value$$
Section titled “value$$”value$$:
Signal<TValue>
Defined in: projects/view-angular-core/field/abstract_model.ts:109
model的value
Inherited from
Section titled “Inherited from”valueEvent$$
Section titled “valueEvent$$”valueEvent$$:
Subject<ValueEvent>
Defined in: projects/view-angular-core/field/field-control.ts:17
Overrides
Section titled “Overrides”valueNoError$$
Section titled “valueNoError$$”valueNoError$$:
Signal<boolean>
Defined in: projects/view-angular-core/field/abstract_model.ts:319
Inherited from
Section titled “Inherited from”AbstractControl.valueNoError$$
Accessors
Section titled “Accessors”Get Signature
Section titled “Get Signature”get dirty():
boolean
Defined in: projects/view-angular-core/field/abstract_model.ts:166
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”disabled
Section titled “disabled”Get Signature
Section titled “Get Signature”get disabled():
boolean
Defined in: projects/view-angular-core/field/abstract_model.ts:128
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”enabled
Section titled “enabled”Get Signature
Section titled “Get Signature”get enabled():
boolean
Defined in: projects/view-angular-core/field/abstract_model.ts:131
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”errors
Section titled “errors”Get Signature
Section titled “Get Signature”get errors():
ValidationErrors2[] |undefined
Defined in: projects/view-angular-core/field/abstract_model.ts:320
Returns
Section titled “Returns”ValidationErrors2[] | undefined
Inherited from
Section titled “Inherited from”fieldPath
Section titled “fieldPath”Get Signature
Section titled “Get Signature”get fieldPath(): (
string|number)[]
Defined in: projects/view-angular-core/field/abstract_model.ts:366
Returns
Section titled “Returns”(string | number)[]
Inherited from
Section titled “Inherited from”invalid
Section titled “invalid”Get Signature
Section titled “Get Signature”get invalid():
boolean
Defined in: projects/view-angular-core/field/abstract_model.ts:397
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”parent
Section titled “parent”Get Signature
Section titled “Get Signature”get parent():
AbstractControl<any> |undefined
Defined in: projects/view-angular-core/field/abstract_model.ts:326
Returns
Section titled “Returns”AbstractControl<any> | undefined
Inherited from
Section titled “Inherited from”pending
Section titled “pending”Get Signature
Section titled “Get Signature”get pending():
boolean
Defined in: projects/view-angular-core/field/abstract_model.ts:401
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”pristine
Section titled “pristine”Get Signature
Section titled “Get Signature”get pristine():
boolean
Defined in: projects/view-angular-core/field/abstract_model.ts:169
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”Get Signature
Section titled “Get Signature”get root():
AbstractControl
Defined in: projects/view-angular-core/field/abstract_model.ts:463
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”statusChanges
Section titled “statusChanges”Get Signature
Section titled “Get Signature”get statusChanges():
Observable<VALID_STATUS>
Defined in: projects/view-angular-core/field/abstract_model.ts:563
Returns
Section titled “Returns”Observable<VALID_STATUS>
Inherited from
Section titled “Inherited from”touched
Section titled “touched”Get Signature
Section titled “Get Signature”get touched():
boolean
Defined in: projects/view-angular-core/field/abstract_model.ts:150
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”untouched
Section titled “untouched”Get Signature
Section titled “Get Signature”get untouched():
boolean
Defined in: projects/view-angular-core/field/abstract_model.ts:153
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”Get Signature
Section titled “Get Signature”get valid():
boolean
Defined in: projects/view-angular-core/field/abstract_model.ts:393
Returns
Section titled “Returns”boolean
Inherited from
Section titled “Inherited from”Get Signature
Section titled “Get Signature”get value():
TValue
Defined in: projects/view-angular-core/field/abstract_model.ts:372
Returns
Section titled “Returns”TValue
Inherited from
Section titled “Inherited from”valueChanges
Section titled “valueChanges”Get Signature
Section titled “Get Signature”get valueChanges():
Observable<any>
Defined in: projects/view-angular-core/field/abstract_model.ts:520
Returns
Section titled “Returns”Observable<any>
Inherited from
Section titled “Inherited from”valuePath
Section titled “valuePath”Get Signature
Section titled “Get Signature”get valuePath(): (
string|number)[]
Defined in: projects/view-angular-core/field/abstract_model.ts:360
Returns
Section titled “Returns”(string | number)[]
Inherited from
Section titled “Inherited from”Methods
Section titled “Methods”activatedChildren()
Section titled “activatedChildren()”activatedChildren():
Iterable<[string|number,AbstractControl<any>]>
Defined in: projects/view-angular-core/field/abstract_model.ts:500
Returns
Section titled “Returns”Iterable<[string | number, AbstractControl<any>]>
Inherited from
Section titled “Inherited from”AbstractControl.activatedChildren
disable()
Section titled “disable()”disable():
void
Defined in: projects/view-angular-core/field/abstract_model.ts:137
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”emitSubmit()
Section titled “emitSubmit()”emitSubmit():
void
Defined in: projects/view-angular-core/field/field-control.ts:94
仅触发 updateOn: submit 时使用
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”enable()
Section titled “enable()”enable():
void
Defined in: projects/view-angular-core/field/abstract_model.ts:134
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”find()
Section titled “find()”find(
_name):AbstractControl<any> |null
Defined in: projects/view-angular-core/field/abstract_model.ts:494
Parameters
Section titled “Parameters”string | number
Returns
Section titled “Returns”AbstractControl<any> | null
Inherited from
Section titled “Inherited from”get<
P>(path):AbstractControl<any> |null
Defined in: projects/view-angular-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”getRawValue()
Section titled “getRawValue()”getRawValue(
_mode?):any
Defined in: projects/view-angular-core/field/abstract_model.ts:448
Parameters
Section titled “Parameters”_mode?
Section titled “_mode?”ValueType = ValueType.allPartialValid
Returns
Section titled “Returns”any
Inherited from
Section titled “Inherited from”markAllAsDirty()
Section titled “markAllAsDirty()”markAllAsDirty():
void
Defined in: projects/view-angular-core/field/abstract_model.ts:414
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”AbstractControl.markAllAsDirty
markAllAsPristine()
Section titled “markAllAsPristine()”markAllAsPristine():
void
Defined in: projects/view-angular-core/field/abstract_model.ts:419
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”AbstractControl.markAllAsPristine
markAllAsTouched()
Section titled “markAllAsTouched()”markAllAsTouched():
void
Defined in: projects/view-angular-core/field/abstract_model.ts:424
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”AbstractControl.markAllAsTouched
markAllAsUntouched()
Section titled “markAllAsUntouched()”markAllAsUntouched():
void
Defined in: projects/view-angular-core/field/abstract_model.ts:428
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”AbstractControl.markAllAsUntouched
markAsDirty()
Section titled “markAsDirty()”markAsDirty():
void
Defined in: projects/view-angular-core/field/abstract_model.ts:436
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”markAsPristine()
Section titled “markAsPristine()”markAsPristine():
void
Defined in: projects/view-angular-core/field/abstract_model.ts:440
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”AbstractControl.markAsPristine
markAsTouched()
Section titled “markAsTouched()”markAsTouched():
void
Defined in: projects/view-angular-core/field/abstract_model.ts:410
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”markAsUntouched()
Section titled “markAsUntouched()”markAsUntouched():
void
Defined in: projects/view-angular-core/field/abstract_model.ts:432
Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”AbstractControl.markAsUntouched
reset()
Section titled “reset()”reset(
formState?):void
Defined in: projects/view-angular-core/field/field-control.ts:39
Parameters
Section titled “Parameters”formState?
Section titled “formState?”TValue = ...
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”setControl()
Section titled “setControl()”setControl(
_name,_control):void
Defined in: projects/view-angular-core/field/abstract_model.ts:498
Parameters
Section titled “Parameters”string | number
_control
Section titled “_control”Returns
Section titled “Returns”void
Inherited from
Section titled “Inherited from”setParent()
Section titled “setParent()”setParent(
parent):void
Defined in: projects/view-angular-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”updateValue()
Section titled “updateValue()”updateValue(
value,force?):void
Defined in: projects/view-angular-core/field/field-control.ts:74
Parameters
Section titled “Parameters”any
force?
Section titled “force?”boolean
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”viewValueChange()
Section titled “viewValueChange()”viewValueChange(
value):void
Defined in: projects/view-angular-core/field/field-control.ts:67
view变更
Parameters
Section titled “Parameters”TValue | undefined
Returns
Section titled “Returns”void