Const// The right-click menu only appears once it has items
instance.UI.contextMenuPopup.update([
{ type: 'actionButton', dataElement: 'ctxPrintButton', label: 'Print', onClick: () => instance.UI.print() },
{ type: 'actionButton', dataElement: 'ctxDownloadButton', label: 'Download', onClick: () => instance.UI.downloadPdf() },
]);
The items of the right-click (or long press) menu over the document. It has no items by default, so it only appears once items are added.