mirror of
https://github.com/nasa/openmct.git
synced 2024-12-24 07:16:39 +00:00
[API] Add Time Conductor example
This commit is contained in:
parent
b111eeff07
commit
92118d353e
13
API.md
13
API.md
@ -142,6 +142,19 @@ openmct.composition(myObject).load().then(function (childObjects) {
|
|||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
### Synchronizing with the Time Conductor
|
||||||
|
|
||||||
|
Views which wish to remain synchronized with the state of Open MCT's
|
||||||
|
time conductor should utilize
|
||||||
|
[`openmct.conductor`]{@link module:openmct.TimeConductor}:
|
||||||
|
|
||||||
|
```
|
||||||
|
openmct.conductor.on('bounds', function (newBounds) {
|
||||||
|
requestTelemetry(newBounds.start, newBounds.end).then(displayTelemetry);
|
||||||
|
});
|
||||||
|
```
|
||||||
|
|
||||||
|
|
||||||
## Plugins
|
## Plugins
|
||||||
|
|
||||||
While you can register new features with Open MCT directly, it is generally
|
While you can register new features with Open MCT directly, it is generally
|
||||||
|
Loading…
Reference in New Issue
Block a user