Skip to main content
Version: 1.0.4

UseSharePointPlannerReturn

@spartanfx/react v1.0.4


@spartanfx/react / UseSharePointPlannerReturn

Interface: UseSharePointPlannerReturn

Return type for useSharePointPlanner hook Returns props that can be spread directly into Planner component

Properties

PropertyTypeDescription
errorErrorError state
itemsRecord<string, unknown>[]Array of raw items to be transformed by the Planner
loadingbooleanLoading state - true when fetching data
onCreate(input) => Promise<Record<string, unknown>>Create a new item in SharePoint
onDelete(id) => Promise<void>Delete an item from SharePoint
onPlannerDatesChanged(newStartDate, newEndDate) => voidCallback to handle planner date changes (connect to onPlannerDatesChanged prop)
onRefresh() => Promise<void>Force refresh the data
onUpdate(id, input) => Promise<void>Update an existing item in SharePoint
optionsIPlannerOptionsPlanner options with CRUD callbacks
schemaIPlannerSchemaSchema passed through for the Planner