Our pure JavaScript Scheduler component


Post by miltonarcos »

MessageDialog.yesButton gives an error property yesButton does not exist on type MessageDialog.
MessageDialog in the validation example has a confirm method that returns a promise and also has the noButton/yesButton/cancelButtons specified. The scheduler full version does not appear to have that same code so i'm receive an error saying that MessageDialog.yesButton does not exist.

Screenshots of the MessageDialog from the Validation Demo (https://www.bryntum.com/examples/scheduler/validation/) and from my implementation of the Full Scheduler install are below.

                
listeners: { beforeeventdropfinalize : async({ source : scheduler, context }) => { //if (scheduler.confirmationsEnabled) { context.async = true; const namesInQuotes = context.draggedRecords.map(eventRecord => `"${eventRecord.name}"`), result = await MessageDialog.confirm({ title : 'Please confirm', message : `${namesInQuotes.join(', ')} ${namesInQuotes.length > 1 ? 'were' : 'was'} moved. Allow this operation?` }); // `true` to accept the changes or `false` to reject them context.finalize(result === MessageDialog.yesButton); //} },
Attachments
scheduler full.png
scheduler full.png (119.51 KiB) Viewed 597 times
validation sample code.png
validation sample code.png (127.75 KiB) Viewed 597 times

Post by sergey.maltsev »

Hi!

Thanks for the report.
I've created issue to fix it
https://github.com/bryntum/support/issues/1119

Meanwhile you could just mark this line with // @ts-ignore


Post Reply