mirror of
https://github.com/nasa/openmct.git
synced 2025-06-19 23:53:49 +00:00
[Scrolling] Bring in scrolling list view
Bring in scrolling list view from the sandbox branch in preparation for clean up, testing, and integration to complete transition of scrolling list views, WTD-534.
This commit is contained in:
31
platform/features/scrolling/src/RangeColumn.js
Normal file
31
platform/features/scrolling/src/RangeColumn.js
Normal file
@ -0,0 +1,31 @@
|
||||
/*global define,Promise*/
|
||||
|
||||
/**
|
||||
* Module defining DomainColumn. Created by vwoeltje on 11/18/14.
|
||||
*/
|
||||
define(
|
||||
[],
|
||||
function () {
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
*
|
||||
* @constructor
|
||||
*/
|
||||
function RangeColumn(rangeMetadata) {
|
||||
return {
|
||||
getTitle: function () {
|
||||
return rangeMetadata.name;
|
||||
},
|
||||
getValue: function (domainObject, data, index) {
|
||||
return data.getRangeValue(
|
||||
index,
|
||||
rangeMetadata.key
|
||||
);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
return RangeColumn;
|
||||
}
|
||||
);
|
Reference in New Issue
Block a user