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
@@ -30,12 +30,11 @@ define([], function () {
|
||||
this.objectKeyString = objectKeyString;
|
||||
}
|
||||
|
||||
getFormattedDatum() {
|
||||
return Object.values(this.columns)
|
||||
.reduce((formattedDatum, column) => {
|
||||
formattedDatum[column.getKey()] = this.getFormattedValue(column.getKey());
|
||||
return formattedDatum;
|
||||
}, {});
|
||||
getFormattedDatum(headers) {
|
||||
return Object.keys(headers).reduce((formattedDatum, columnKey) => {
|
||||
formattedDatum[columnKey] = this.getFormattedValue(columnKey);
|
||||
return formattedDatum;
|
||||
}, {});
|
||||
}
|
||||
|
||||
getFormattedValue(key) {
|
||||
|
||||
Reference in New Issue
Block a user