From b520d088183aef3a52a930392a551b9bf0565ecc Mon Sep 17 00:00:00 2001 From: Victor Woeltjen Date: Wed, 25 May 2016 13:23:19 -0700 Subject: [PATCH] [Table] Begin work on CSV export #934 --- platform/features/table/res/templates/mct-table.html | 1 + platform/features/table/src/controllers/MCTTableController.js | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/platform/features/table/res/templates/mct-table.html b/platform/features/table/res/templates/mct-table.html index 7a18388455..72be43fe93 100644 --- a/platform/features/table/res/templates/mct-table.html +++ b/platform/features/table/res/templates/mct-table.html @@ -1,4 +1,5 @@
+
Export
diff --git a/platform/features/table/src/controllers/MCTTableController.js b/platform/features/table/src/controllers/MCTTableController.js index e4cfa45b23..25cb83d781 100644 --- a/platform/features/table/src/controllers/MCTTableController.js +++ b/platform/features/table/src/controllers/MCTTableController.js @@ -46,6 +46,10 @@ define( setDefaults($scope); + $scope.exportAsCSV = function () { + window.alert("Export!"); + }; + $scope.toggleSort = function (key) { if (!$scope.enableSort) { return;