[Features] Added option to specify a type to exclusively apply the Autoflow view to
This commit is contained in:
@@ -7,6 +7,7 @@ define([
|
||||
AutoflowTabularController,
|
||||
MCTAutoflowTable
|
||||
) {
|
||||
return function (options) {
|
||||
return function (openmct) {
|
||||
openmct.legacyRegistry.register("platform/features/autoflow", {
|
||||
"name": "WARP Telemetry Adapter",
|
||||
@@ -20,6 +21,7 @@ define([
|
||||
"cssClass": "icon-packet",
|
||||
"description": "A tabular view of packet contents.",
|
||||
"template": autoflowTabularTemplate,
|
||||
"type": options && options.type,
|
||||
"needs": [
|
||||
"telemetry"
|
||||
],
|
||||
@@ -47,5 +49,6 @@ define([
|
||||
});
|
||||
openmct.legacyRegistry.enable("platform/features/autoflow");
|
||||
};
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
@@ -57,9 +57,16 @@ define([
|
||||
};
|
||||
};
|
||||
|
||||
plugins.AutoflowView = function () {
|
||||
return AutoflowPlugin;
|
||||
};
|
||||
/**
|
||||
* A tabular view showing the latest values of multiple telemetry points at
|
||||
* once. Formatted so that labels and values are aligned.
|
||||
*
|
||||
* @param {Object} [options] Optional settings to apply to the autoflow
|
||||
* tabular view. Currently supports one option, 'type'.
|
||||
* @param {string} [options.type] The key of an object type to apply this view
|
||||
* to exclusively.
|
||||
*/
|
||||
plugins.AutoflowView = AutoflowPlugin;
|
||||
|
||||
var conductorInstalled = false;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user