Skip to main content
Version: 1.1.0

ICAPlannerReturn

@spartanfx/react v1.1.0


@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

PropertyTypeDescription
errorErrorError state.
itemsCAPlannerRecord[]Raw items ready for Planner schema transformation.
loadingbooleanLoading state.
onCreate(input) => Promise<CAPlannerRecord>Create a new item.
onDelete(id) => Promise<void>Delete an item.
onPlannerDatesChanged(newStartDate, newEndDate) => voidDate-range navigation callback.
onRefresh() => Promise<void>Force a refresh.
onUpdate(id, input) => Promise<void>Update an existing item.
optionsIPlannerOptionsPlanner options with CRUD callbacks.
schemaIPlannerSchemaSchema passed through to Planner.