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.

], function(_BaseSaveAs) {
  // ...


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.

Type Description
undefined |
Nothing or a deferred when the function is asynchronous