Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IDorfCheckboxDefinition<T>

Represents constructor parameter for DorfCheckboxDefinition. Checkbox has an optional mapping property.

stable

Type parameters

  • T

Hierarchy

Implemented by

Index

Properties

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 innerLabel

innerLabel: undefined | string

Label around the field. Checkbox has 2 labels. First standard, as for all other fields; second - around, e.g. as for radio button. It's usually not needed to show both of them.

Optional label

label: undefined | string

Label which should describe the field.

Optional mapping

mapping: ICheckboxMapping<T>

Indicates how to map true and false checkbox values.

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.

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