Ir al contenido

Campos

Tipos de campo integrados:

KindValorOpciones
textstringplaceholder, minLength, maxLength, pattern
numbernumber | nullmin, max, step, unit, placeholder
booleanbooleanrequired exige true
categorystring | nulloptions como strings o { label, value }
onehot-categorystring | nulloptions como { label, value, mappedTo }. Envia columnas one-hot 0/1.
dateDate | nullmin, max, step
seriesarray de puntosminPoints, maxPoints, granularity, ordered, uniqueTimestamps, minDate, maxDate, minValue, maxValue, unit

Opciones compartidas:

{
id: "email",
kind: "text",
label: "Email",
description: "Used for notifications.",
showDescriptionInline: true,
required: true,
defaultValue: "",
hiddenWhen: { kind: "field-value", field: "anonymous", equals: true },
ui: { autocomplete: "email" }
}

Opciones compartidas adicionales:

  • showDescriptionInline: muestra description por defecto sin esperar al boton de ayuda.
  • mappedTo: escribe el campo en una clave backend, posicion numerica o mapa por backend.