Pass the special custom property EDITOR:DESIGN_INSTRUCTION to show your customer instructions while they design.
The editor displays the value as an informational notification labeled Design instructions: at the bottom of the
design canvas, before any other informational messages. The instructions apply to the whole print job (all printings).
Edit mode, pass the key again to
update it, or an empty string to hide the notification. Omitting the key keeps the saved value." ". Docs say only non-empty strings show a notification — check whether an empty notification appears.editor:design_instruction. Expected: no notification (key is case-sensitive), stored as a normal custom property.Last created print job:(none — create one above first)
<button
data-td-action="OpenCreate"
data-td-supplier-code="PFC"
data-td-product-code="10086021"
data-td-print-position-code="front"
data-td-print-technology-code="PAD03"
data-td-custom-properties='{"EDITOR:DESIGN_INSTRUCTION":"Place your logo in the center of the print area."}'>
Design your print
</button>
window.tronDesigner
.addCustomProperty('EDITOR:DESIGN_INSTRUCTION', 'Place your logo in the center of the print area.')
.setExactProduct('PFC', undefined, (p) => p.addVariant('10086021'))
.addExactPrinting('front', 'PAD03')
.open({ mode: 'dialog' });
window.tronDesigner.openDesigner({
openMode: 'Create',
dataMode: 'Exact',
printJob: {
customProperties: {
'EDITOR:DESIGN_INSTRUCTION': 'Place your logo in the center of the print area.'
},
addProducts: { supplierCode: 'PFC', variants: [{ productCode: '10086021' }] },
addPrintings: [{ printPositionCode: 'front', printTechnologyCode: 'PAD03' }]
}
}, { mode: 'dialog' });
// Custom properties are merged in Edit mode:
// pass a new value to update, '' to hide, or omit the key to keep the saved value.
window.tronDesigner.openDesigner({
openMode: 'Edit',
printJob: {
printJobGuid: printJobGuid,
customProperties: { 'EDITOR:DESIGN_INSTRUCTION': '' }
}
}, { mode: 'dialog' });