RowField

tcmts.cli.data_pages.RowField · #epmag5is · type

A field of a row, as a form edits it: its name, its type as written, what kind of input it takes (text, a number, true or false, a date, one of its values, or else JSON), the values it takes (one of them), and whether it may be left out, or be null.

export interface RowField {
  name: string;
  type: string;
  input: "text" | "number" | "boolean" | "date" | "choice" | "json";
  choices?: (string | number | boolean)[];
  optional: boolean;
  nullable: boolean;
}

used by