MCPcopy
hub / github.com/tabulator-tables/tabulator / constructor

Method constructor

src/js/modules/Download/Download.js:12–23  ·  view source on GitHub ↗
(table)

Source from the content-addressed store, hash-verified

10 static downloaders = defaultDownloaders;
11
12 constructor(table){
13 super(table);
14
15 this.registerTableOption("downloadEncoder", function(data, mimeType){
16 return new Blob([data],{type:mimeType});
17 }); //function to manipulate download data
18 this.registerTableOption("downloadConfig", {}); //download config
19 this.registerTableOption("downloadRowRange", "active"); //restrict download to active rows only
20
21 this.registerColumnOption("download");
22 this.registerColumnOption("titleDownload");
23 }
24
25 initialize(){
26 this.deprecatedOptionsCheck();

Callers

nothing calls this directly

Calls 2

registerTableOptionMethod · 0.80
registerColumnOptionMethod · 0.80

Tested by

no test coverage detected