mirror of
https://github.com/nasa/openmct.git
synced 2025-06-20 16:10:23 +00:00
[API] Add MCTView directive as an adapter
This commit is contained in:
11
src/MCT.js
11
src/MCT.js
@ -21,6 +21,13 @@ define([
|
||||
this.legacyBundle.extensions.types =
|
||||
this.legacyBundle.extensions.types || [];
|
||||
this.legacyBundle.extensions.types.push(legacyDef);
|
||||
|
||||
var viewFactory = type.view(this.regions.main);
|
||||
if (viewFactory) {
|
||||
this.legacyBundle.extensions.views =
|
||||
this.legacyBundle.extensions.views || [];
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
MCT.prototype.start = function () {
|
||||
@ -28,5 +35,9 @@ define([
|
||||
this.emit('start');
|
||||
};
|
||||
|
||||
MCT.prototype.regions = {
|
||||
main: "MAIN"
|
||||
};
|
||||
|
||||
return MCT;
|
||||
});
|
||||
|
Reference in New Issue
Block a user