onDesignSelect
Registers a callback that runs when a user selects a design via the "My Designs" carousel.
Usage
(async () => {const api = await Canva.Partnership.initialize({apiKey: "<partner_api_key>",autoAuthToken: "<auto_auth_token>",container: document.getElementById("container"),});const onDesignSelect = (opts) => {// the user has selected a design via the catalogconsole.log(opts);};api.showCatalog({onDesignSelect,});})();
javascript