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:
committed by
Pete Richards
parent
eaa971cb56
commit
c883bbe6c2
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user