Feature to download a file e.g. a template from trueChart, by default we use the browser api for this, in some cases there need to be triggered an action, in case you like to override this behaviour you can do it here

Hierarchy

  • IFileDownloadFeature

Index

Properties

Properties

save

save: function

is triggered when a file need to be saved

param

data that needs to be saved

param

name of the file

param

mime type, default: 'text/plain;charset=utf-8'

Type declaration

    • (data: string, fileName: string, type?: undefined | string): void
    • Parameters

      • data: string
      • fileName: string
      • Optional type: undefined | string

      Returns void