Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DorfFieldsModule

Library module with all the fields-related components.

This is DORF essence. Should be replaced when totally different HTML structure for fields needed (e.g. Angular Material with DORF). This module exports FormsModule and ReactiveFormsModule and all the predefined DORF field components. This version of DORF module, requires additional components, like dorf-field-wrapper and dorf-buttons. Those can be defined and included on their own or through the following DORF declarations: [DorfButtonsComponent, DorfFieldWrapperComponent].

It may be imported by forRoot method and then there is a possibility to define custom fields and CSS classes.

example

 //
 DorfModule.forRoot({
   css: {
     general: {
       form: "pure-form pure-form-aligned",
       group: "pure-control-group",
       error: "error-message"
     }
   },
   dorfFields: [{
     tag: StarRatingDefinition.TAG,
     definition: StarRatingDefinition,
     metadata: StarRatingMetadata
   }]
 })],
stable

Hierarchy

  • DorfFieldsModule

Index

Methods

Methods

Static forRoot

Generated using TypeDoc