Hi,
Is it possible to show a popup confirmation before applying Vertical Drag?
We have added the below code to the advanced demo: (https://bryntum.com/examples/gantt/advanced/)
import { MessageDialog } from '../../build/gantt.module.js?449267';
And for the gantt configs, under features, we have added the below code:
rowReorder: {
listeners: {
async gridRowBeforeDropFinalize(source) {
source.context.async = true;
const
result = await MessageDialog.confirm({
title : 'Please confirm',
message : 'Allow this operation?'
});
// true to accept the changes or false to reject them
source.context.finalize(result === MessageDialog.yesButton);
}
},
},
The change goes through irrespective of the option selected.
Any thoughts / suggestions?
Thanks,
Nagaraju