Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IDorfRadioDefinition<T>

Represents constructor parameter for DorfRadioDefinition. Definition for radio is a pure extension of IDorfChooseDefinition.

stable

Type parameters

  • T

Hierarchy

Implemented by

Index

Properties

Optional asyncOptionsToSelect

asyncOptionsToSelect: Promise<OptionType<T>[]> | Observable<OptionType<T>[]>

Asynchronous options to be assigned to the field. Can be set later, e.g. in form component, ngOnInit method.

Optional asyncValidator

asyncValidator: AsyncValidatorFn | AsyncValidatorFn[]

Asynchronous value checker.

Optional css

inheritdoc

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 optionsToSelect

optionsToSelect: OptionType<T>[]

Elements to choose from.

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.

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