OData V4 Übung 2 - Aufgabe 2.6 - View Controller - OnDelete
Nichts besonderes - nur ein Dialog
onDelete: function () {
if (!this.oApproveDialog) {
this.oApproveDialog = new Dialog({
type: DialogType.Message,
title: "Löschen",
content: new Text({ text: "Sollen die Einträge gelöscht werden?" }),
beginButton: new Button({
type: ButtonType.Emphasized,
text: "Löschen",
press: function () {
this.processDelete();
this.oApproveDialog.close();
}.bind(this)
}),
endButton: new Button({
text: "Abbrechen",
press: function () {
this.oApproveDialog.close();
}.bind(this)
})
});
}
this.oApproveDialog.open();
}