Edit API
API reference docs for the React Edit component. Learn about the props, CSS, and other APIs of this exported module.
Demos
Import
import { Edit } from '@toolpad/core/Crud';
Name | Type | Default | Description |
---|---|---|---|
dataSource | object | - | Server-side data source. |
dataSourceCache | { cache: object, clear: func, get: func, set: func, ttl: number } | - | Cache for the data source. |
localeText | object | - | Locale text for the component. |
onSubmitSuccess | func | - | Callback fired when the form is successfully submitted. |
slotProps | { form?: { checkbox?: object, datePicker?: object, dateTimePicker?: object, select?: object, textField?: object } } | {} | The props used for each slot inside. |
slots | { form?: { checkbox?: elementType, datePicker?: elementType, dateTimePicker?: elementType, select?: elementType, textField?: elementType } } | {} | The components used for each slot inside. See Slots API below for more details. |
The component cannot hold a ref.
Source code
If you did not find the information in this page, consider having a look at the implementation of the component for more detail.