Page 1 of 1
Load Complete handler
Posted: Tue Sep 13, 2022 9:59 am
by rodel.ocfemia
Hi,
How would I know if the loading of data from the server has been completed already. Is there any existing event handler such as onLoadCompletion?
project: {
transport: {
load: {
url: 'myserver/data'
}
},
autoLoad: true
}
Re: Load Complete handler
Posted: Tue Sep 13, 2022 10:11 am
by tasnim
Yes. An event available called load
fires when the data loading is completed.
Please check the docs reference: https://bryntum.com/docs/taskboard/api/TaskBoard/model/ProjectModel#event-load
Example of how you can use it:
project : {
....,
listeners : {
load() {
// Write your logic here
}
}
}
You can find all of the events about projectModel
here: https://bryntum.com/docs/taskboard/api/TaskBoard/model/ProjectModel#events
All the best,
Tasnim
Re: Load Complete handler
Posted: Tue Sep 13, 2022 10:31 am
by rodel.ocfemia