onArtworkCreate
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 onArtworkCreate = (opts) => {// the user has finished proofing their designconsole.log(opts);};const onProductSelect = (opts) => {api.createDesign({...opts,onArtworkCreate,});};api.showCatalog({onProductSelect,});})();
javascript