Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IDorfService

It is a base for DorfModule configuration. Parameters should be provided in [forRoot]{@link DorfModule#forRoot} method from the DorfModule.

example

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

Hierarchy

  • IDorfService

Implemented by

Index

Properties

Optional columnsNumber

columnsNumber: undefined | number

Form can be rendered with multiple columns. Number of fields within the section should be specified here.

Optional css

General and field-specific CSS classes.

Optional dorfFields

List of supproted fields defined by DorfFieldDefinition, DorfFieldMetadata, css and tags.

Optional requiredWithStar

requiredWithStar: undefined | true | false

Forces required fields to have dorf-required CSS class, which defines :after pseudoelement with a red star.

Generated using TypeDoc