mirror of
https://github.com/nasa/openmct.git
synced 2025-06-20 16:10:23 +00:00
[Limits] Use datum for scrolling list
Use notion of a datum from scrolling list view when evaluating limits, WTD-1223.
This commit is contained in:
@ -54,10 +54,10 @@ define(
|
|||||||
* column.
|
* column.
|
||||||
* @returns {string} the text to display
|
* @returns {string} the text to display
|
||||||
*/
|
*/
|
||||||
getValue: function (domainObject, data, index) {
|
getValue: function (domainObject, datum) {
|
||||||
return {
|
return {
|
||||||
text: telemetryFormatter.formatDomainValue(
|
text: telemetryFormatter.formatDomainValue(
|
||||||
data.getDomainValue(index, domainMetadata.key)
|
datum[domainMetadata.key]
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -54,11 +54,11 @@ define(
|
|||||||
* column.
|
* column.
|
||||||
* @returns {string} the text to display
|
* @returns {string} the text to display
|
||||||
*/
|
*/
|
||||||
getValue: function (domainObject, data, index) {
|
getValue: function (domainObject, datum) {
|
||||||
var range = rangeMetadata.key,
|
var range = rangeMetadata.key,
|
||||||
limit = domainObject.getCapability('limit'),
|
limit = domainObject.getCapability('limit'),
|
||||||
value = data.getRangeValue(index, range),
|
value = datum[range],
|
||||||
alarm = limit.evaluate(value, range);
|
alarm = limit.evaluate(datum, range);
|
||||||
|
|
||||||
return {
|
return {
|
||||||
cssClass: alarm && alarm.cssClass,
|
cssClass: alarm && alarm.cssClass,
|
||||||
|
Reference in New Issue
Block a user