onDrawingDelete
Drawing deletion handler
This example demonstrates how the onDrawingDelete callback
sends a request to the host application to delete a drawing revision. Once the request completes, the result is returned to the widget through the
onResponse
callback.
Drawing deletion handler
onDrawingDelete: (
drawing: DIQ_DrawingRevision,
onResponse: (result: DIQ_Result) => void
) => {
deleteDrawingService(drawing.key)
.then(() => {
onResponse({ success: true });
})
.catch((error) => {
onResponse({ success: false, error });
});
};