mirror of
https://github.com/nasa/openmct.git
synced 2025-01-27 06:39:21 +00:00
31 lines
684 B
JavaScript
31 lines
684 B
JavaScript
|
/*global define,Promise*/
|
||
|
|
||
|
/**
|
||
|
* Module defining DomainColumn. Created by vwoeltje on 11/18/14.
|
||
|
*/
|
||
|
define(
|
||
|
[],
|
||
|
function () {
|
||
|
"use strict";
|
||
|
|
||
|
/**
|
||
|
*
|
||
|
* @constructor
|
||
|
*/
|
||
|
function DomainColumn(domainMetadata) {
|
||
|
return {
|
||
|
getTitle: function () {
|
||
|
return domainMetadata.name;
|
||
|
},
|
||
|
getValue: function (domainObject, data, index) {
|
||
|
return data.getDomainValue(
|
||
|
index,
|
||
|
domainMetadata.key
|
||
|
);
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
|
||
|
return DomainColumn;
|
||
|
}
|
||
|
);
|