Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DataFieldTemplateComponent

Hierarchy

  • AbstractDataFieldTemplateComponent
    • DataFieldTemplateComponent

Index

Constructors

  • new DataFieldTemplateComponent(_paperView: PaperViewService, _config: ConfigurationService, componentRegistry: ComponentRegistryService, injector: Injector): DataFieldTemplateComponent

Properties

_componentPortal: ComponentPortal<any>
_componentRegistry: ComponentRegistryService
_config: ConfigurationService
_dataField: DataField<any>
_isConfiguredNetgrifTemplate: boolean
_isNetgrifTemplate: boolean
_paperView: PaperViewService
container: ElementRef<any>
dataFieldTemplate: TemplateRef<any>

Content of the datafield that should be displayed in the template

injector: Injector
layoutChangeWidthBreakpoint: number

If the available space has a width smaller that this breakpoint the datafield will fill 100% of the available space.

The breakpoint is only taken into consideration if TemplateAppearance.NETGRIF is set on the data field.

See [DataField.layout]{@link DataField#layout} for more information.

offset: number

Field offset defined by task

ɵcmp: unknown
ɵfac: unknown

Accessors

  • get additionalFieldProperties(): {}
  • set additionalFieldProperties(value: {}): void
  • Returns {}

    • [k: string]: string | number
  • Parameters

    • value: {}
      • [k: string]: string | number

    Returns void

  • get componentPortal(): ComponentPortal<any>
  • Returns ComponentPortal<any>

  • get dataField(): DataField<any>
  • set dataField(dataField: DataField<any>): void
  • Datafield model object that should be displayed in the template

    Returns DataField<any>

  • Datafield model object that should be displayed in the template

    Parameters

    • dataField: DataField<any>

    Returns void

  • get showLargeLayout(): WrappedBoolean
  • Returns WrappedBoolean

Methods

  • evaluateTemplate(): boolean
  • Returns boolean

    false if the data field uses the TemplateAppearance.MATERIAL and true otherwise.

  • evaluateTemplateCondition(): boolean
  • Function that is called when the Component changes dimension and determines whether the "small" or "large" layout should be displayed.

    Returns boolean

  • hasComponent(): boolean
  • Returns boolean

  • isPaperView(): boolean
  • Returns boolean

  • ngOnInit(): void
  • Returns void

  • resolveComponentPortal(dataField: DataField<any>, showLargeLayout: WrappedBoolean, formControlRef: FormControl, additionalFieldProperties?: {}): ComponentPortal<any>
  • Parameters

    • dataField: DataField<any>
    • showLargeLayout: WrappedBoolean
    • formControlRef: FormControl
    • Optional additionalFieldProperties: {}
      • [k: string]: string | number

    Returns ComponentPortal<any>

Generated using TypeDoc