Skip to main content

ITaskManagerProps

@spartanfx/react v1.2.2


@spartanfx/react / index / ITaskManagerProps

Interface: ITaskManagerProps

Task Manager component props (PLATFORM-AGNOSTIC)

Properties

Required

PropertyTypeDescription
itemsITask[]Array of tasks to display

Options

PropertyTypeDescription
allowAddition?booleanWhether to allow adding new tasks (default: true)
allowDeletion?booleanWhether to allow deleting tasks (default: true)
allowDragDrop?booleanWhether to allow drag & drop functionality (includes moving between columns and reordering within columns) (default: true)
allowEdit?booleanWhether to allow editing tasks (default: true)
buckets?string[]Array of bucket/status values to display in Kanban view
defaultView?ViewAsInitial view mode (default: 'list')
error?ErrorCurrent error state
loading?booleanCurrent loading state
loadingMessage?stringCustom loading message (default: "Loading tasks...")
responsiveThreshold?numberScreen width threshold (in pixels) below which to automatically switch to Kanban view (default: 1400)
totalItems?numberTotal number of tasks available

Events & callbacks

PropertyTypeDescription
onCreate?(input) => void | Promise<ITask>Callback when a task is created
onDelete?(id) => void | Promise<void>Callback when a task is deleted
onGetUserSuggestions?(searchText) => Promise<IUserSuggestion[]>Callback to get user suggestions for people picker
onMove?(id, newStatus, newOrder?) => void | Promise<void>Callback when a task is moved to different status (drag & drop)
onRefresh?() => void | Promise<void>Callback to refresh/reload data
onRenderTaskForm?(task) => voidCallback to render a custom task form (for both create and edit). When provided, the internal TaskEditPanel is not used. - For new tasks: task parameter is null - For editing: task parameter contains the task to edit
onTaskClick?(task) => voidCallback when a task is selected/clicked
onUpdate?(id, input) => void | Promise<void>Callback when a task is updated

Appearance & theming

PropertyTypeDescription
appearance?AppearanceModeAppearance mode (light or dark)
className?stringCustom CSS class name
style?CSSPropertiesCustom styles
theme?ITaskManagerThemeCustom theme overrides