ScaffolderRJSFFieldProps
Home > @backstage/plugin-scaffolder-react
> ScaffolderRJSFFieldProps
The props for the Field
components
Signature:
export interface ScaffolderRJSFFieldProps<T = any, S extends StrictRJSFSchema = RJSFSchema, F extends FormContextType = any> extends GenericObjectType, Pick<HTMLAttributes<HTMLElement>, Exclude<keyof HTMLAttributes<HTMLElement>, 'onBlur' | 'onFocus' | 'onChange'>>
Extends: GenericObjectType, Pick<HTMLAttributes<HTMLElement>, Exclude<keyof HTMLAttributes<HTMLElement>, 'onBlur' | 'onFocus' | 'onChange'>>
Properties
Property |
Modifiers |
Type |
Description |
---|---|---|---|
boolean |
(Optional) A boolean value stating if the field should autofocus | ||
boolean |
A boolean value stating if the field is disabled | ||
ErrorSchema<T> |
(Optional) The tree of errors for this field and its children | ||
F |
(Optional) The | ||
T |
(Optional) The data for this field | ||
boolean |
(Optional) A boolean value stating if the field is hiding its errors | ||
string |
(Optional) To avoid collisions with existing ids in the DOM, it is possible to change the prefix used for ids; Default is | ||
IdSchema<T> |
The tree of unique ids for every child field | ||
string |
(Optional) To avoid using a path separator that is present in field names, it is possible to change the separator used for ids (Default is | ||
string |
The unique name of the field, usually derived from the name of the property in the JSONSchema | ||
(id: string, value: any) => void |
The input blur event handler; call it with the field id and value | ||
(newFormData: T | undefined, es?: ErrorSchema<T>, id?: string) => any |
The field change event handler; called with the updated form data and an optional | ||
(id: string, value: any) => void |
The input focus event handler; call it with the field id and value | ||
string[] |
An array of strings listing all generated error messages from encountered errors for this field | ||
boolean |
A boolean value stating if the field is read-only | ||
Registry<T, S, F> |
The | ||
boolean |
(Optional) The required status of this field | ||
S |
The JSON subschema object for this field | ||
UiSchema<T, S, F> |
The uiSchema for this field |