Vue tables followup work. (#2162)

- Allow 'editable' property on view providers to optionally be a function
 - CSVExporter now only exports visible columns. Updated CSVExporter to ES6 exports / imports
 - Shortcut sortedIndex in insert if value is outside of first or last value in collection
 - Added table view icon
This commit is contained in:
Andrew Henry
2018-09-11 19:03:32 +01:00
committed by Pete Richards
parent eaa971cb56
commit c883bbe6c2
7 changed files with 77 additions and 49 deletions

View File

@@ -35,12 +35,15 @@ define([
return {
key: 'table',
name: 'Telemetry Table',
editable: true,
cssClass: 'icon-tabular-realtime',
editable: function(domainObject) {
return domainObject.type === 'table';
},
canView: function (domainObject) {
return domainObject.type === 'table' || domainObject.hasOwnProperty('telemetry');
},
view: function (domainObject) {
let csvExporter = new CSVExporter();
let csvExporter = new CSVExporter.default();
let table = new TelemetryTable(domainObject, openmct);
let component;
return {