Skip to main content
Version: 1.0.4

ITaskManagerProps

@spartanfx/react v1.0.4


@spartanfx/react / ITaskManagerProps

Interface: ITaskManagerProps

Task Manager component props (PLATFORM-AGNOSTIC)

Properties

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)
appearance?AppearanceModeAppearance mode (light or dark)
buckets?string[]Array of bucket/status values to display in Kanban view
className?stringCustom CSS class name
defaultView?ViewAsInitial view mode (default: 'list')
error?ErrorCurrent error state
itemsITask[]Array of tasks to display
loading?booleanCurrent loading state
loadingMessage?stringCustom loading message (default: "Loading tasks...")
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)
onOpenItem?(task) => voidCallback when a task is opened for editing - allows parent to manage edit panel
onRefresh?() => void | Promise<void>Callback to refresh/reload data
onTaskClick?(task) => voidCallback when a task is selected/clicked
onUpdate?(id, input) => void | Promise<void>Callback when a task is updated
responsiveThreshold?numberScreen width threshold (in pixels) below which to automatically switch to Kanban view (default: 1400)
style?CSSPropertiesCustom styles
theme?ITaskManagerThemeCustom theme overrides
totalItems?numberTotal number of tasks available