_BaseDeletable

This mixin should be used for plugins that are deletable in the BlueConic UI. It offers a generic method for plugins to implement custom logic when an item is deleted.

Example
define([
  "blueconic/api/widgets/plugins/mixins/_BaseDeletable"
], function(_BaseDeletable) {
  // ...
});

Functions

beforeDelete(domainObjectToDelete)undefined | dojo/Deferred

This method can be implemented to hook into the "delete" (before) event of the containing domain object. Either return nothing or a {dojo/Deferred}, which is waited on before actually deleting the domain object.

Name Type Description
domainObjectToDelete blueconic.api.data.domain._Base

The domain object that's going to be deleted.

Returns:
Type Description
undefined |
dojo/Deferred
Nothing or a deferred when the function is asynchronous