Interface AeSharedFormUnit<TUnit, TUnitValue, TControls, TClass>

An amended entity representing a component member containing a shared from unit to amend.

Type Parameters

  • TUnit extends FormUnit<TUnitValue, TControls>

    Unit type.

  • TUnitValue = FormUnit.ValueType<TUnit>

    Unit value type.

  • TControls extends FormUnit.Controls<TUnitValue> = ControlsType<TUnit>

    Unit controls type.

  • TClass extends ComponentClass = Class

    Amended component class type.

Hierarchy

Properties

amendedClass: TClass

Amended class constructor.

componentDef: ComponentDef<any>

Amended component definition.

configurable: boolean

Whether the member is configurable.

enumerable: boolean

Whether the member is enumerable.

featureDef: FeatureDef

Amended feature definition options.

key: string | symbol

A key of the instance member.

Updates to this property are always ignored. The member key can not be changed.

localShare: boolean

Whether the share is local.

  • true to make the value available only locally, i.e. only when requested by sharer context.
  • false to make the value available to nested components too.
locateForm?: Fn<FormUnit<any, FormUnit.Controls<any>, any>>

Predefined locator function of the form unit to add the share unit to, or undefined when unknown.

name?: null | string

Predefined unit name, or null/undefined when the unit is not to be added to the form.

readable: boolean

Whether the member is writable.

Updates to this property are always ignored.

Set to true when get property assigned. Set to false when set property assigned, while the get one is not. Remains unchanged when neither get, nor set properties assigned.

share: Share<TUnit>

Target share instance.

writable: boolean

Whether the member is writable.

Updates to this property are always ignored.

Set to true when set property assigned. Set to false when get property assigned, while the set one is not. Remains unchanged when neither get, nor set properties assigned.

Methods

  • Reads the value of this member in the target instance.

    Throws if the member is not readable.

    Returns

    Member value.

    Parameters

    • this: void
    • instance: InstanceType<TClass>

      Target instance.

    Returns undefined | TUnit

  • Reads value shared by target component.

    This method is not amendable.

    Returns

    An AfterEvent keeper of shared value.

    Parameters

    • this: void
    • component: InstanceType<TClass>

      Sharer component instance.

    Returns AfterEvent<[TUnit?]>

  • Assigns the value of this member in the target instance.

    Throw is the member is not writable.

    Parameters

    • this: void
    • instance: InstanceType<TClass>

      Target instance.

    • update: undefined | TUnit

      Updated member value.

    Returns void

Generated using TypeDoc