Interfazui
FormProps
Formulario con validacion declarativa y estados (cargando/error/exito) automaticos. Categoria: input.
Firma
export interface FormProps extends CommonProps {
fields?: Array<{ name?: string; label?: string | number | boolean | I18nText; helperText?: string | number | boolean | I18nText; placeholder?: string | number | boolean | I18nText; bind?: string; bindTo?: string; value?: unknown; defaultValue?: unknown; required?: boolean | Expr; disabled?: boolean | Expr; readOnly?: boolean | Expr; size?: Size | Expr; rules?: ReglasDeValidacionDeclarativasShape; onChange?: UiActionInput; type?: string | number | boolean | I18nText; options?: Array<OpcionShape> | Expr; mountPoint?: string | number | boolean | I18nText; mountInline?: boolean | Expr; contextSetter?: string; min?: number | Expr; max?: number | Expr; step?: number | Expr; rows?: number | Expr; }> | Expr;
submitLabel?: string | number | boolean | I18nText;
cancelLabel?: string | number | boolean | I18nText;
onSubmit?: UiActionInput;
onCancel?: UiActionInput;
successMessage?: string | number | boolean | I18nText;
resetOnSuccess?: boolean | Expr;
validateOn?: "submit" | "blur" | "change" | Expr;
gap?: Gap | Expr;
}- Extiende
Miembros (9)
| Nombre | Tipo | Descripción |
|---|---|---|
| fieldsopcional | Array<{ name?: string; label?: string | number | boolean | I18nText; helperText?: string | number | boolean | I18nText; placeholder?: string | number | boolean | I18nText; bind?: string; bindTo?: string; value?: unknown; defaultValue?: unknown; required?: boolean | Expr; disabled?: boolean | Expr; readOnly?: boolean | Expr; size?: Size | Expr; rules?: ReglasDeValidacionDeclarativasShape; onChange?: UiActionInput; type?: string | number | boolean | I18nText; options?: Array<OpcionShape> | Expr; mountPoint?: string | number | boolean | I18nText; mountInline?: boolean | Expr; contextSetter?: string; min?: number | Expr; max?: number | Expr; step?: number | Expr; rows?: number | Expr; }> | Expr | Campos declarativos. |
| submitLabelopcional | string | number | boolean | I18nText | Texto del boton enviar. Por defecto: |
| cancelLabelopcional | string | number | boolean | I18nText | Texto del boton cancelar (solo si hay onCancel). |
| onSubmitopcional | UiActionInput | Accion al enviar: recibe |
| onCancelopcional | UiActionInput | Accion del boton cancelar. |
| successMessageopcional | string | number | boolean | I18nText | Mensaje tras un envio correcto. |
| resetOnSuccessopcional | boolean | Expr | Vacia el formulario tras el exito. |
| validateOnopcional | "submit" | "blur" | "change" | Expr | Cuando validar. Por defecto: |
| gapopcional | Gap | Expr | Espacio en escala de 4px (0-12). Por defecto: |
Usado en / Referenciado por
Fuente: bloomx-extensions/_shared/sdk/ui.d.ts:1579 · ui.d.ts