Provides all types related to FormField
Types
FormField = object name*: string isRequired*: bool case kind*: FormFieldKind of STRING: strVal*: Option[string] of FLOAT: fVal*: Option[float64] of INT: iVal*: Option[int64] of DATE: dtVal*: Option[string] of BOOL: bVal*: Option[bool] of INTSELECT: intSeqVal*: Option[int64] intOptions*: seq[IntOption] of STRSELECT: strSeqVal*: Option[string] strOptions*: seq[StringOption] of FILE: fileVal*: Option[FilePath]
- The data used to render a HTML Form Field. Any nim type must be converted into a FormField instance via toFormField procs. Source Edit
FormFieldKind = enum STRING, INT, FLOAT, DATE, BOOL, INTSELECT, STRSELECT, FILE
- The types of various HTML Form fields that can be generated to represent the fields on a norm model. Source Edit
IntOption = object name*: string value*: int64
- A single option of a select FormField with int values Source Edit
StringOption = object name*: string value*: string
- A single option of a select FormField with string values Source Edit