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"
},
...
]
}
}
Filters applied to the master TaskStore are not by default applied to the column stores (chained stores created for each column). To propagate filters from master store to the column stores, configure the TaskBoard with
chainFilters : true. See chainFilters for more details.No results
Configs
Configs are options you supply in a configuration object when creating an instance of this class-
Class used to represent records, defaults to TaskModel
Properties
Properties are getters/setters or publicly accessible variables on this class-
Identifies an object as an instance of TaskStore class, or subclass thereof.
-
Identifies an object as an instance of TaskStore class, or subclass thereof.