Hello, I would like to ask how to obtain the status of the confirmation deletion pop-up box in Gantt’s onLightboxDelete. If the user confirms the deletion, execute the following code. Otherwise, the cancellation task pop-up box still exists。I hope you can reply as soon as possible,thanks.
Here is my code:
// delete task
gantt.attachEvent(“onLightboxDelete”, async function (id) {
SaleApi.deleteSaleApi(id).then(res => {
gantt.deleteTask(id);
message.success(‘delete success’)
return true
})
})