DataFormField
@spartanfx/react / index / DataFormField
Function: DataFormField()
function DataFormField<TValue>(props): ReactElement;
Renders one field from the current DataForm context.
Type Parameters
TValue
TValue extends DataFormValues = DataFormValues
Props
Required
| Property | Type | Description |
|---|---|---|
fieldName | string | - |
Options
Events & callbacks
| Property | Type | Description |
|---|---|---|
onChange? | (newValue, oldValue?) => void | - |
onRenderControl? | (props) => ReactElement | - |
onRenderTooltipContent? | () => ReactElement | - |
Appearance & theming
| Property | Type | Description |
|---|---|---|
className? | string | - |
Advanced & escape hatches
| Property | Type | Description |
|---|---|---|
controlProps? | Record<string, unknown> | - |
dateTimePickerProps? | IDataFormDateTimePickerProps | - |
Full type reference:
IDataFormFieldProps
Returns
ReactElement