Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IDorfInputDefinition<T>

Represents constructor parameter for DorfInputDefinition. Input has a mandatory type property. It has to support HTML5 types.

stable

Type parameters

  • T

Hierarchy

Implemented by

Index

Properties

Optional asyncValidator

asyncValidator: AsyncValidatorFn | AsyncValidatorFn[]

Asynchronous value checker.

Optional css

CSS classes which should be assigned to this field.

Optional debounce

debounce: undefined | number

Property known from ng-model-options, from Angular 1.3. Defines time (in milliseconds) which should pass before updating a field value in a source model. This should be specified together with updateModelOnChange set to true.

Optional errorMessage

errorMessage: undefined | string

Message which should be displayed when validation returns errors.

Optional extras

extras: undefined | object

Additional properties which can be defined on the fly. Every property from this object would be presented directly on field metadata. Accessing them should be implemented separately, e.g. in DorfMapper extension.

Optional label

label: undefined | string

Label which should describe the field.

Optional onSummary

onSummary: undefined | true | false

Indicates if the field is important enough to be presented e.g. on grid or on the summary screen.

Optional order

order: undefined | number

Represents element index in the form.

Optional tag

tag: undefined | string

Tag is de facto a selector for the component. It allows to identify a particular component in HTML form.

type

type: InputType

Optional updateModelOnChange

updateModelOnChange: undefined | true | false

Indicates if we want to immediately update a corresponding value in object. Behavior is similar to NgModel's one.

Optional validator

validator: ValidatorFn | ValidatorFn[]

Value checker.

Generated using TypeDoc