Class DataField<T>Abstract

Holds the logic common to all data field Model objects.

T - type of the value property of the data field

Type Parameters

  • T

Hierarchy (view full)

Constructors

  • Type Parameters

    • T

    Parameters

    • _stringId: string

      ID of the data field from backend

    • _title: string

      displayed title of the data field from backend

    • initialValue: T

      initial value of the data field

    • _behavior: Behavior

      data field behavior

    • Optional_placeholder: string

      placeholder displayed in the datafield

    • Optional_description: string

      tooltip of the datafield

    • Optional_layout: Layout

      information regarding the component rendering

    • Optionalvalidations: Validation[]
    • Optional_component: Component

      component data of datafield

    • Optional_parentTaskId: string

      stringId of parent task, only defined if field is loaded using TaskRefField

    • Optional_parentCaseId: string

      stringId of parent case, only defined if field is loaded using TaskRefField

    Returns DataField<T>

Properties

_blockSubscription: Subscription
_formControlValueSubscription: Subscription
_initializedSubscription: Subscription

Stores the last subscription to the [_initialized$]AbstractDataField#_initialized$ Stream, to prevent multiple block events from executing at the same time

_localLayout: Layout

Stores a copy of the fields layout, that can be modified by the layouting algorithm as needed without affecting the base configuration.

_myValueSubscription: Subscription
_touchSubscription: Subscription
_updateSubscription: Subscription
_validators: ValidatorFn[]

Validators resolved from field validations

layoutSubject: BehaviorSubject<Layout>

Listens for layout changes

validations?: Validation[]

Accessors

Methods