CrudAPI
React Crud 元件的 API 參考文件。了解這個匯出模組的 props、CSS 和其他 API。
範例
匯入
import { Crud } from '@toolpad/core/Crud';
// or
import { Crud } from '@toolpad/core';
閱讀這份關於最小化套件大小的指南,以了解差異。
名稱 | 類型 | 預設 | 描述 |
---|---|---|---|
dataSource* | object | - | 伺服器端資料來源。 |
rootPath* | string | - | CRUD 頁面的根路徑。 |
dataSourceCache | { cache: object, clear: func, get: func, set: func, ttl: number } | - | 快取資料來源。 |
defaultValues | object | {} | 新項目的預設表單值。 |
initialPageSize | number | 100 | 每頁顯示的初始列數。 |
此元件無法持有 ref。
原始碼
如果您在本頁面中找不到資訊,請考慮查看元件的實作程式碼以取得更多詳細資訊。