跳转到内容

PiyingFieldTemplateDirective

Defined in: projects/view-angular/lib/directives/field-template.directive.ts:17

  • DynamicCreateDirective

S = PiResolvedViewFieldConfig

P extends KeyPath = []

new PiyingFieldTemplateDirective<S, P>(): PiyingFieldTemplateDirective<S, P>

Defined in: projects/view-angular/lib/hook/dynamic-create.ts:86

PiyingFieldTemplateDirective<S, P>

DynamicCreateDirective.constructor

optional componentRef?: ComponentRef<any>

Defined in: projects/view-angular/lib/component/base.component.ts:136

DynamicCreateDirective.componentRef


optional destroyComponentFn?: () => void

Defined in: projects/view-angular/lib/component/base.component.ts:132

void

DynamicCreateDirective.destroyComponentFn


field: Signal<PiResolvedViewFieldConfig>

Defined in: projects/view-angular/lib/directives/field-template.directive.ts:39

DynamicCreateDirective.field


field$$: Signal<PiFieldGet<S, P> | undefined>

Defined in: projects/view-angular/lib/directives/field-template.directive.ts:35


optional fieldComponentInstance?: any

Defined in: projects/view-angular/lib/component/base.component.ts:133

DynamicCreateDirective.fieldComponentInstance


optional fieldDirectiveRefList?: any[]

Defined in: projects/view-angular/lib/component/base.component.ts:135

DynamicCreateDirective.fieldDirectiveRefList


optional fieldElementRef?: ElementRef<HTMLElement>

Defined in: projects/view-angular/lib/component/base.component.ts:134

DynamicCreateDirective.fieldElementRef


readonly fieldTemplate: InputSignal<S>

Defined in: projects/view-angular/lib/directives/field-template.directive.ts:21


index: number = 0

Defined in: projects/view-angular/lib/hook/dynamic-create.ts:23

第一次默认为空

DynamicCreateDirective.index


injector: Injector

Defined in: projects/view-angular/lib/directives/field-template.directive.ts:24


inputInjector: Signal<Injector>

Defined in: projects/view-angular/lib/directives/field-template.directive.ts:40

DynamicCreateDirective.inputInjector


onInit: InputSignal<((field) => void) | undefined>

Defined in: projects/view-angular/lib/directives/field-template.directive.ts:23


readonly path: InputSignal<[...P[]] | PiFieldBindPath<S> | undefined>

Defined in: projects/view-angular/lib/directives/field-template.directive.ts:22


summaryList$$: Signal<ErrorSummary[]>

Defined in: projects/view-angular/lib/directives/field-template.directive.ts:43


valibotIssueSummary$$: Signal<string>

Defined in: projects/view-angular/lib/directives/field-template.directive.ts:44

createComponent(list, viewContainerRef): void

Defined in: projects/view-angular/lib/component/base.component.ts:181

DynamicComponentConfig[]

ViewContainerRef

void

DynamicCreateDirective.createComponent


ngOnChanges(): void

Defined in: projects/view-angular/lib/directives/field-template.directive.ts:50

void

DynamicCreateDirective.ngOnChanges


ngOnDestroy(): void

Defined in: projects/view-angular/lib/hook/dynamic-create.ts:96

void

DynamicCreateDirective.ngOnDestroy


update(list): void

Defined in: projects/view-angular/lib/component/base.component.ts:310

DynamicComponentConfig[]

void

DynamicCreateDirective.update