openmct/src/plugins/staticRootPlugin
Joel McKinnon 43628ad9d6
Lodash upgrade and cleanup (#2990)
* Upgrades lodash
* Replaces some usage of lodash with native functions.
* Adds linting to catch cases where native functions could be used instead of lodash functions
* Renamed testTools to testUtils

Co-authored-by: Joshi <simplyrender@gmail.com>
Co-authored-by: David Tsay <david.e.tsay@nasa.gov>
Co-authored-by: David Tsay <3614296+davetsay@users.noreply.github.com>
Co-authored-by: Andrew Henry <akhenry@gmail.com>
2020-05-27 10:59:02 -07:00
..

Static Root Plugin

This plugin takes an object tree as JSON and exposes it as a non-editable root level tree. This can be useful if you have static non-editable content that you wish to expose, such as a standard set of displays that should not be edited (but which can be copied and then modified if desired).

Any object tree in Open MCT can be exported as JSON after installing the Import/Export plugin.

Installation

openmct.install(openmct.plugins.StaticRootPlugin('mission', 'data/static-objects.json'));

Parameters

The StaticRootPlugin takes two parameters:

  1. namespace: This should be a name that uniquely identifies this collection of objects.
  2. path: The file that the static tree should be exposed from. This will need to be a path that is reachable by a web browser, ie not a path on the local file system.