Skip to content

Commit

Permalink
Merge branch 'master' into Mct6085
Browse files Browse the repository at this point in the history
  • Loading branch information
ozyx committed Aug 29, 2023
2 parents a9a9b2c + ca06a6a commit 1fdef86
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plugins/staticRootPlugin/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ Any object tree in Open MCT can be exported as JSON after installing the

## Installation
``` js
openmct.install(openmct.plugins.StaticRootPlugin('mission', 'data/static-objects.json'));
openmct.install(openmct.plugins.StaticRootPlugin({ namespace: 'mission', exportUrl: '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
2. __exportUrl__: 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.

0 comments on commit 1fdef86

Please sign in to comment.