mirror of
https://github.com/nasa/openmct.git
synced 2025-06-20 08:03:49 +00:00
[Scrolling] Add JSDoc, clean up
Clean up scripts for Scrolling List view and add some JSDoc. WTD-534.
This commit is contained in:
@ -9,14 +9,25 @@ define(
|
||||
"use strict";
|
||||
|
||||
/**
|
||||
* A column which will report the name of the domain object
|
||||
* which exposed specific telemetry values.
|
||||
*
|
||||
* @constructor
|
||||
*/
|
||||
function NameColumn() {
|
||||
return {
|
||||
/**
|
||||
* Get the title to display in this column's header.
|
||||
* @returns {string} the title to display
|
||||
*/
|
||||
getTitle: function () {
|
||||
return "Name";
|
||||
},
|
||||
/**
|
||||
* Get the text to display inside a row under this
|
||||
* column. This returns the domain object's name.
|
||||
* @returns {string} the text to display
|
||||
*/
|
||||
getValue: function (domainObject) {
|
||||
return domainObject.getModel().name;
|
||||
}
|
||||
|
Reference in New Issue
Block a user