ITaskManagerProps
@spartanfx/react / ITaskManagerProps
Interface: ITaskManagerProps
Task Manager component props (PLATFORM-AGNOSTIC)
Properties
| Property | Type | Description |
|---|---|---|
allowAddition? | boolean | Whether to allow adding new tasks (default: true) |
allowDeletion? | boolean | Whether to allow deleting tasks (default: true) |
allowDragDrop? | boolean | Whether to allow drag & drop functionality (includes moving between columns and reordering within columns) (default: true) |
allowEdit? | boolean | Whether to allow editing tasks (default: true) |
appearance? | AppearanceMode | Appearance mode (light or dark) |
buckets? | string[] | Array of bucket/status values to display in Kanban view |
className? | string | Custom CSS class name |
defaultView? | ViewAs | Initial view mode (default: 'list') |
error? | Error | Current error state |
items | ITask[] | Array of tasks to display |
loading? | boolean | Current loading state |
loadingMessage? | string | Custom 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) => void | Callback when a task is opened for editing - allows parent to manage edit panel |
onRefresh? | () => void | Promise<void> | Callback to refresh/reload data |
onTaskClick? | (task) => void | Callback when a task is selected/clicked |
onUpdate? | (id, input) => void | Promise<void> | Callback when a task is updated |
responsiveThreshold? | number | Screen width threshold (in pixels) below which to automatically switch to Kanban view (default: 1400) |
style? | CSSProperties | Custom styles |
theme? | ITaskManagerTheme | Custom theme overrides |
totalItems? | number | Total number of tasks available |