This mixin should be used for plugins that can be saved as (copied) in the BlueConic UI. It offers a generic method for plugins to implement custom logic when an item is saved as a new copy.
Example
define([
"blueconic/api/widgets/plugins/mixins/_BaseSaveAs"
], function(_BaseSaveAs) {
// ...
});
Functions
-
beforeSaveAs(domainObjectToSaveAs)undefined | dojo/Deferred
-
This method can be implemented to hook into the "save as" (before) event of the containing domain object. Either return nothing or a {dojo/Deferred}, which is waited on before actually copying the domain object.
Name Type Description domainObjectToSaveAs blueconic.api.data.domain._Base The domain object that's going to be saved as.
Returns:
Type Description undefined |
dojo/DeferredNothing or a deferred when the function is asynchronous