Customize the "Publish" button
When a user is ready to print their design, they can click the Publish button to start the proofing process. If you'd like to use different terminology for this button though, you can change the label.
To customize the label of the "Publish" button, provide a value for the publishLabel property when using the following methods:
The following snippet demonstrates this customization in the createDesign method:
1
(async () => {
2
const api = await Canva.Partnership.initialize({
3
apiKey: "<partner_api_key>",
4
autoAuthToken: "<auto_auth_token>",
5
container: document.getElementById("container"),
6
});
7
8
const onProductSelect = (opts) => {
9
api.createDesign({ ...opts, publishLabel: "Do something!" });
10
};
11
12
api.showCatalog({
13
onProductSelect,
14
});
15
})();
Copied!
While viewing the editor on a mobile device, the Publish button uses an icon instead of a label. You can't customize this icon.
Last modified 2mo ago
Export as PDF
Copy link