Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface OptionType<T>

Represents a type that can be assigned to options of a field.

Some fields, like select and radio should have just limited values to choose from. Values may be displayed differently than stored. That's why there is a key and value. Type of the key comes from the DorfFieldDefinition while value is just a string to be displayed in HTML.

stable

Type parameters

  • T

Hierarchy

  • OptionType

Index

Properties

Properties

key

key: T

This is what will be saved in model.

value

value: string

This is what will be shown to the user.

Generated using TypeDoc