input
element.input
elementinput
element with a unique name
attribute:button
element:data-on-design-open-input-design-id
data-on-design-publish-input-design-id
input
element's name
attribute:data-on-design-open-input-design-id
attribute is defined, Canva inserts the ID of the design into the specified field when the user opens a design. This includes when creating a new design or editing an existing design.data-on-design-publish-input-design-id
attribute is defined, Canva inserts the ID of the design into the specified field when the user publishes their design.input
element, save the ID for future use.onDesignOpen
and onDesignPublish
functions.button
element:data-on-design-open
data-on-design-publish
data-on-design-open
attribute. This includes when creating a new design or editing an existing design.data-on-design-publish
attribute.opts.designId
parameter:data-design-id
attribute:data-design-id
attribute on the button
element tells the Canva Button SDK that clicking this button should open an existing design. The value of the data-design-id
attribute must be the ID of a design.button
element has a data-design-id
attribute, it must not have a data-design-type
attribute. These attributes are mutually exclusive.