Skip to content

Commit 5a891b2

Browse files
committed
Custom export handler
1 parent bd11362 commit 5a891b2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Griddly/Scripts/griddly.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,10 @@
448448
this.clearSelected();
449449
}, this));
450450

451+
$("a.export-custom", this.$element).on("click", $.proxy(function (e) {
452+
this.exportFile("custom", null, { exportName: $(e.target).data("export-name") });
453+
e.preventDefault();
454+
}, this));
451455
$("a.export-xlsx", this.$element).on("click", $.proxy(function (e) {
452456
this.exportFile("xlsx", null, { exportName: $(e.target).data("export-name") });
453457
e.preventDefault();

0 commit comments

Comments
 (0)