ICAPlannerReturn
@spartanfx/react / codeapps / ICAPlannerReturn
Interface: ICAPlannerReturn
Return type of the CodeApps Planner adapter hooks. Matches the SPFx
UseSharePointPlannerReturn shape exactly so the existing
<Planner /> component renders identically.
Properties
| Property | Type | Description |
|---|---|---|
error | Error | Error state. |
items | CAPlannerRecord[] | Raw items ready for Planner schema transformation. |
loading | boolean | Loading state. |
onCreate | (input) => Promise<CAPlannerRecord> | Create a new item. |
onDelete | (id) => Promise<void> | Delete an item. |
onPlannerDatesChanged | (newStartDate, newEndDate) => void | Date-range navigation callback. |
onRefresh | () => Promise<void> | Force a refresh. |
onUpdate | (id, input) => Promise<void> | Update an existing item. |
options | IPlannerOptions | Planner options with CRUD callbacks. |
schema | IPlannerSchema | Schema passed through to Planner. |