Skip to content

Commit 0fa4d2d

Browse files
committed
Merge pull request #64 from jehhynes/master
Custom export handler
2 parents e329854 + 5a891b2 commit 0fa4d2d

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)