tuil
ReferencePackages@mwillbanks/tuil-formAPI

TerminalFieldOptions

interface exported by @mwillbanks/tuil-form.

View rawEdit

interface

Public interface exported by @mwillbanks/tuil-form.

export interface TerminalFieldOptions<T> {
  readonly name: string;
  readonly initialValue: T;
  readonly value?: T;
  readonly onValueChange?: (value: T) => void | Promise<void>;
  readonly validators?: FieldValidators<T>;
  readonly disabled?: boolean;
  readonly readOnly?: boolean;
  readonly secret?: boolean;
}

Members

MemberTypeRequiredDescriptionRelated types
namestringYesThe name member uses the string contract.
initialValueTYesThe initialValue member uses the T contract.
valueT | undefinedNoThe value member uses the T | undefined contract.
onValueChange((value: T) => void | Promise<void>) | undefinedNoThe onValueChange member uses the ((value: T) => void | Promise<void>) | undefined contract.
validatorsFieldValidators<T> | undefinedNoThe validators member uses the FieldValidators<T> | undefined contract.FieldValidators
disabledboolean | undefinedNoThe disabled member uses the boolean | undefined contract.
readOnlyboolean | undefinedNoThe readOnly member uses the boolean | undefined contract.
secretboolean | undefinedNoThe secret member uses the boolean | undefined contract.

Parameters

This declaration has no public members.

Returns

This declaration does not return a value.

Throws

No thrown errors are documented for this declaration.

Source

View the secondary source reference

Package

@mwillbanks/tuil-form

On this page