Hi,
we evaluate your taskboard and have some questions about the stores. we already have an existing store (with singlr intergration) and tried to connect it with your TaskStore class.
it looks like:
export class MyStore extends TaskStore {
public projectId: Guid;
constructor(private kanbanService: KanbanService, config?: Partial<TaskStoreConfig>) {
super(config);
}
public async load(): Promise<any>{
const data = this.kanbanService.getTasks()
this.data = data;
console.log('mystore', data, this.data);
return Promise.resolve(data);
}
public insert(a,b): TaskModel[] {
console.log('mystore insert', a,b);
return [];
}
public add(a,b): TaskModel[] {
console.log('mystore add', a,b);
return [];
}
public async commit(): Promise<any> {
console.log('mystore commit');
}
}
Our questions:
- is there an easier way to combine an already existing store with your taskboard ?
- is overriding the functions in TaskStore the best way to implement an external store
another solution was to assign the project.tasksData (https://www.bryntum.com/docs/taskboard/#TaskBoard/model/ProjectModel#config-tasksData)
and config.columns with our existing store (the store already returns columns and tasks as arrays)
but here rises another question:
- how do we manage things like updates or inserts ? our stores needs us to call update,insert,delete methods
- can we use the taskboard without a store ?
best regards,
Marinus