TaskStore
Store that holds the tasks of a TaskBoard. By default configured to use TaskModel for its records.
Loaded and handled as a part of a project. For example using inline data:
const taskBoard = new TaskBoard({
project : {
// Data to load into the TaskStore
tasks : [
{ id : 1, name : 'Some task', status : 'todo', prio : 'low' }
]
}
}
When loaded using the CrudManager functionality of the project, it
is populated from the 'tasks' property in the
response:
const taskBoard = new TaskBoard({
project : {
transport : {
load : {
url : 'load.php'
}
},
autoLoad : true
}
}
Expected response format to populate the TaskStore:
{
"success" : true,
"tasks" : {
"rows" : [
{
"id" : 1,
"name" : "Important task",
"status" : "todo",
"prio" : "high"
},
...
]
}
}
chainFilters : true. See chainFilters
for more details.Configs
82
Configs
82Common
Class used to represent records, defaults to TaskModel
Configure with true to also remove the event when removing the last assignment from the linked
AssignmentStore.
Defaults to false for TaskBoard since it is unexpected that a tasks disappears when unassigning the last
resource from it.
Initial sorters, format is [{ field: 'name', ascending: false }, ...].
By default the TaskStore is sorted by weight, tasks with higher weights are displayed further down.
When useSparseIndex is enabled, weight is not used, but sparseIndex takes precedence.