Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DorfFieldComponent<T, M>

Component which switch between all built-in DORF fields. There are 4 base fields + additional ones, passed with DorfConfigService. This component groups all those fields in order to speed up HTML template creation. Only one field will be visible at a time. It is possible to include custom HTML code between component's tags.

example


 <dorf-field [metadata]="fieldMeta">
   <star-rating *ngIf="fieldMeta.tag === 'star-rating'" [metadata]="fieldMeta"></star-rating>
 </dorf-field>
stable

Type parameters

Hierarchy

Index

Constructors

constructor

Properties

config

injected service

metadata

metadata: M

Essence, needed by DORF field.

Accessors

dorfFieldCss

formControl

  • get formControl(): FormControl

htmlFieldCss

invalid

  • get invalid(): undefined | true | false

isDorfCheckbox

  • get isDorfCheckbox(): boolean

isDorfInput

  • get isDorfInput(): boolean

isDorfRadio

  • get isDorfRadio(): boolean

isDorfSelect

  • get isDorfSelect(): boolean

key

  • get key(): string

label

  • get label(): undefined | string

labelCss

  • get labelCss(): string

Methods

Protected getCss

Protected isDorfTag

  • isDorfTag(tag: string): boolean

Generated using TypeDoc