File

libs/core/dynamic-form/line-break/src/line-break.component.ts

Extends

DfBaseComponent

Metadata

Index

Properties

Properties

control
Default value : input(undefined)
Inherited from DfBaseComponent
Defined in DfBaseComponent:13
aclResource
Type : string
Inherited from DfBaseComponent
Defined in DfBaseComponent:56
componentOrControlInitFinished
Default value : new ReplaySubject<void>(1)
Inherited from DfBaseComponent

Additionally to the controlChanged EventEmitter a ReplaySubject is provided. In difference to the EventEmitter, this one always contains the last emitted value, which allows to check if a component was initialized after the initialization already happened. (An event will be gone at that point in time.)

config
Type : InputSignal<C>
Default value : input.required<C>()
Inherited from DfBaseComponent
Defined in DfBaseComponent:64

The configuration object for this formfield.

Note that derived formfield components should extend the DfBaseConfig config interface as needed and expose that their own config interface.

Readonly controlChanged
Default value : output<AbstractControl | undefined>()
Inherited from DfBaseComponent

Emits the AbstractControl associated with this formfield, once it has been fully configured (i.e. its initial value and validators have been added as per the config).

Applications that need to further process this AbstractControl (e.g. to add more validators) should therefore wait for this event to be emitted.

Public deferSetupControl
Default value : false
Inherited from DfBaseComponent

By default, the AbstractControl is configured in ngOnInit(), however in some cases this causes an ExpressionChangedAfterItHasBeenCheckedError.

If this is set to true, the setup will not be run automatically. It is then the derived component's responsibility to run call setupFormControl() at the appropriate time.

formAclPath
Default value : input<string>()
Inherited from DfBaseComponent
Defined in DfBaseComponent:89
Readonly formEvent
Default value : output<DfEventPayload>()
Inherited from DfBaseComponent

Emits when events associated to the form control happen.

The emitted object contains the data necessary to uniquely identify the event (field id and event type). It also contains the event data.

isRetailChannel
Default value : input<boolean>()
Inherited from DfBaseComponent
Defined in DfBaseComponent:91
validationConfigs
Default value : input<ValidationConfig[] | undefined>()
Inherited from DfBaseComponent
Defined in DfBaseComponent:87
import { DfBaseComponent } from '@allianz/taly-core/dynamic-form';
import { Component, input } from '@angular/core';
import { DfLineBreakConfig } from './line-break.model';

@Component({
  selector: 'df-line-break',
  template: '<ng-container *aclTag="aclResource"></ng-container>',
  standalone: false
})
export class DfLineBreakComponent extends DfBaseComponent<DfLineBreakConfig> {
  // Override some of the DfBaseComponent functionality
  // that is not needed in this component
  override control = input(undefined);
}
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""