Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AbstractDataFieldTemplateComponent Abstract

Provides a responsive layout to data fields where their appearance can change based on the width of space they have available.

If the width of the available space is less than the layoutChangeWidthBreakpoint then the provided dataFieldTemplate is displayed at 100% width. If the width is greater or equal to the breakpoint the datafield template occupies the right half and the left half contains it's title.

If the datafield's layout is set to TemplateAppearance.MATERIAL the field always occupies 100% of the available space regardless of it's width.

See DataField and TemplateAppearance for more information.

Hierarchy

  • AbstractDataFieldTemplateComponent

Implements

  • OnInit

Index

Constructors

Properties

_additionalFieldProperties: {}

Type declaration

  • [k: string]: string | number
_componentPortal: ComponentPortal<any>
_componentRegistry: ComponentRegistryService
_dataField: DataField<any>
_isConfiguredNetgrifTemplate: boolean = true
_isNetgrifTemplate: boolean = true
_paperView: PaperViewService
container: ElementRef<any>
dataFieldTemplate: TemplateRef<any>

Content of the datafield that should be displayed in the template

injector: Injector
layoutChangeWidthBreakpoint: number = 250

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 = 0

Field offset defined by task

Accessors

  • get additionalFieldProperties(): {}
  • set additionalFieldProperties(value: {}): void
  • get componentPortal(): ComponentPortal<any>

Methods

  • evaluateTemplate(): boolean
  • evaluateTemplateCondition(): boolean
  • hasComponent(): boolean
  • isPaperView(): boolean
  • ngOnInit(): void
  • resolveComponentPortal(dataField: DataField<any>, showLargeLayout: WrappedBoolean, formControlRef: FormControl, additionalFieldProperties?: {}): ComponentPortal<any>

Generated using TypeDoc