Object containing key-value pairs of custom properties
Adds a custom property to the print job.
Adds a new printing with TronCloud position and technology codes.
TronCloud mockup print position code
TronCloud mockup print technology code
OptionalpositionCodeOverride: stringOptional override for the position code
OptionalpositionNameOverride: stringOptional override for the position name
OptionaltechnologyCodeOverride: stringOptional override for the technology code
OptionaltechnologyNameOverride: stringOptional override for the technology name
Optionaloptions: Partial<Options for displaying the printing in the editor
Adds multiple printings with exact position and technology codes.
Optionaloptions: Partial<Options for displaying the printings in the editor
Array of printings to add
OptionalmaxColors: numberOptionalmaxWidth: numberOptionalmaxHeight: numberOptionalmaxDiameter: numberOptionalbackgroundUrls: string[]Optionaloptions: Partial<Gets the current initialization status. Only when initialized, the designer can be opened.
boolean
Returns a promise that resolves when the initialization process is complete.
Gets the image of the product variant with the designed printing motive.
OptionalproductVariantCode: stringoptional product variant code to get the specific variant image, if not provided, the default variant will be used
Gets image of the motive that was designed for this print job in the editor by its GUID.
Gets the print job by its GUID.
Gets the proofreading file by its GUID.
Opens the editor with previously set arguments.
Options for opening the editor elements
Opens the designer either in a dialog or container mode, depending on the configuration.
{EditorArguments} - data to pass to the designer, such as product and print job information
{DesignerOptions} - options for displaying the designer, either in a dialog or a container
Opens the designer for a single print task with specified product variants and one print task specified by print position and print technology.
{string} - code of the supplier
{string[]} - array of product variant codes to include in the print task
{string} - code of the print position
{string} - code of the print technology
Refreshes the registered elements by re-initializing the events in the whole document.
Set the current user.
{Omit<Customer, 'customerGuid'>} - user data to set.
Sets a TronCloud product as the product argument.
OptionalsupplierCode: stringOptionalsupplierGuid: stringOptionalbuildProduct: (productBuilder: IEditorArgumentsExactProductBuilder) => voidSet the current log level for debugging purposes.
log level to set. Allowed values: [info, warn, error, debug]
Sets order information for the print job.
OptionalorderTitle: stringOptionalorderCode: stringOptionalorderItemCode: stringSets an own product without variants.
Optionaldescription: stringOptionalbuildProduct: (productBuilder: IEditorArgumentsOwnSingleDimensionProductBuilder) => voidOptionaloptions: Partial<Pick<EditorOptions, "showSelectedVariants" | "showQuantityInputs">>Optionaldescription: stringOptionalquantity: numberOptionaldescription: stringOptionalbuildProduct: (productBuilder: IEditorArgumentsOwnTwoDimensionsProductBuilder) => voidOptionalsupplierCode: stringOptionalsupplierGuid: stringOptionalbuildProduct: (productBuilder: IEditorArgumentsPartialProductBuilder) => voidOptionaloptions: Partial<Pick<EditorOptions, "showSelectedVariants" | "showQuantityInputs">>Sets an already existing print job to be opened.
Can be used to override the customer info specified by the customer guid attribute.
OptionalcustomerIdentity: stringOptionalcustomerPerson: stringOptionalcustomerCompany: stringOptionalcustomerEmail: stringConfigures editor to close the editor when user confirms the print job final verification.
OptionalredirectUrl: stringOptional URL to redirect to after closing the editor
Configures editor to take no action when user confirms the print job final verification.
Configures editor to show a dialog when user confirms the print job final verification.
Localizations for the dialog to be shown
OptionalredirectUrl: stringOptional URL to redirect to after closing the dialog
Subscribes to print job created event
Subscribes to logo updated or deleted event
Subscribes to text created event
Subscribes to proofreading created event
Subscribes to changes in the DOM elements within a specified root element. This is useful for monitoring dynamic content changes.
HTMLElement - the root element to observe for changes
Unsubscribes from a specific designer event using the callback function.
Unsubscribes from all designer events for a specific entity type and event type.
OptionalentityType: DesignerEntityTypeOptionaleventType: DesignerEventTypeUnsubscribes from changes in the DOM elements, stopping the monitoring of dynamic content changes.
Adds multiple custom properties to the print job.