callbacks.onDownload
Takes over the toolbar Download button (after
forms.validateRequired). When set, the SDK's Download dialog and flow do not run; your function does — get the bytes from viewer.createExporter().() => void