VVibeFlui

Field Config

Type: FluiKitFieldConfig.

Properties

PropertyTypeRequiredDescription
namestringYesField key.
labelstringNoDisplay label.
typeFluiKitFieldTypeNoField renderer type.
valueFromstringNoSource path for edit/detail mapping.
editValueMode"fromRow" | "empty" | "default" | "hidden"NoEdit value behavior.
createValueMode"empty" | "default" | "hidden"NoCreate value behavior.
defaultValueunknownNoDefault value.
hiddenbooleanNoHides field.
disabledbooleanNoDisables input.
readonlybooleanNoRenders read-only behavior when supported.
placeholderstringNoInput placeholder.
helperTextstringNoHelp text.
componentstringNoRegistry component key.
adapterstringNoField adapter key.
adapterPropsRecord<string, unknown>NoJSON-friendly config passed through to the field's adapter/component implementation (for example @vibeflui/editors's editorjs adapter). Not read by the core runtime itself.
validatorstringNoRegistry validator key. Runs only after built-in rules (required, min/max, minLength/maxLength, pattern, email format) already pass.
requiredbooleanNoRequired validation.
min / maxnumber | stringNoNumeric, date, or datetime bounds where applicable.
minLength / maxLengthnumberNoString length validation.
patternstringNoPattern validation.
validationMessagestringNoCustom validation message.
transformerstringNoRegistry transformer key.
computedstringNoRegistry computed resolver key.
computedFromstring | string[]NoSource field dependencies used to decide when a computed resolver should run again.
visibleWhenFluiKitConditionNoConditional visibility.
optionsFluiKitFieldOption[]NoStatic options.
optionsEndpointstringNoEndpoint for options.
optionsDataPathstringNoData path for endpoint options.
optionLoaderstringNoRegistry option loader key.
optionLabelKeystringNoCustom option label key.
optionValueKeystringNoCustom option value key.
classNamestringNoField class name.

Field types

TS
type FluiKitFieldType =
  | "text" | "email" | "password" | "number" | "textarea"
  | "select" | "multiselect" | "checkbox" | "checkbox-group"
  | "radio" | "radio-group" | "switch"
  | "date" | "datetime" | "time"
  | "file" | "image" | "hidden" | "color" | "range"
  | "json" | "code" | "richtext" | "markdown"
  | "tags" | "combobox" | "autocomplete" | "custom";

Use switch for toggle, on-off, and slide controls. Use checkbox for a normal checkbox. Use checkbox-group for multiple selections from options. Use radio or radio-group for single selection from options. Do not use checkbox-toggle; it is not part of FluiKitFieldType in the current source.

Example

TS
{
  name: "status",
  label: "Status",
  type: "select",
  options: [
    { label: "Active", value: "active" },
    { label: "Pending", value: "pending" }
  ]
}