Skip to main content

Mypixia Widget Properties

The Mypixia widget is a powerful product customization component that allows users to create personalized designs on products.

Properties Reference

PropertyTypeRequiredDescription
canvasIdstringYesUnique identifier for the canvas element
apiKeystringNoAuthentication key for the Mypixia API
apiEndpointstringNoURL of the API endpoint
initInstanceobjectNoInitial canvas instance to load (default: null)
isFromScratchbooleanNoWhether to start with a blank canvas (default: false)
initProductNamestringNoInitial product name to load (default: null)
isPlainColorstringNoSet to 'Y' if product has plain color options (default: 'N')
instance.getDesignFormats('targetFormat')functionNoget current design in different formats. You will get 2 files from this call. Print ready and the full design
themeobjectYesTheme configuration for the widget appearance
productobjectYesProduct configuration for customization
enabledModulesarray of stringsNoList of enabled design modules
actionButtonsobjectNoConfigure default action buttons visibility
additionalActionButtonobjectNoAdd a custom action button