palantir-foundryfoundry-slate

Set sandbox flags to functionrunner to allow downloads or popups


is there a possibility to set flags like allow-downloads or allow-popups in slate? i would like to generate small PDF files with custom functions, but since the code runs sandboxed the browser prevents opening popups or downloads.


Solution

  • Since i asked this question the new event action slate.downloadBlob got added. With this action its possible to create a pdf file as a blob and trigger the download (for example with the jsPDF library).