onMultiArtworkCreate
Registers a callback that runs when a user finishes proofing their design.
Usage
(async () => {const api = await Canva.Partnership.initialize({apiKey: "<partner_api_key>",autoAuthToken: "<auto_auth_token>",container: document.getElementById("container"),});const onMultiArtworkCreate = (opts) => {opts.artworks.forEach((artwork) => {console.log(artwork);});};const onProductSelect = (opts) => {api.createDesign({...opts,onMultiArtworkCreate,});};api.showCatalog({onProductSelect,});})();
js
Parameters
Types
Artwork
Represents an individual artwork.