showCatalog
Renders an iframe that contains the product catalog.

Usage

1
(async () => {
2
const api = await Canva.Partnership.initialize({
3
apiKey: "<partner_api_key>",
4
autoAuthToken: "<auth_auth_token>",
5
container: document.getElementById("container"),
6
});
7
8
api.showCatalog({
9
// options go here
10
});
11
})();
Copied!

Parameters

Parameter
Type
Required
Description
opts
object
Yes
Options for configuring the product catalog.
opts.onProductSelect
function
No
Refer to onProductSelect.
opts.onDesignSelect
function
No
Refer to onDesignSelect.
opts.tag
string
No
The tag of a product catalog. This is only relevant when you've set up multiple product catalogs.
The "My Designs" carousel only appears if the onDesignSelect callback is registered.
Last modified 3mo ago
Export as PDF
Copy link