mirror of
https://github.com/nasa/openmct.git
synced 2025-01-25 21:59:23 +00: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:
- namespace: This should be a name that uniquely identifies this collection of objects.
- 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.