mirror of
https://github.com/nasa/openmct.git
synced 2024-12-18 20:57:53 +00:00
[Selection] Handle selection changes
...from the InspectorRegion
This commit is contained in:
parent
e2631bdcfd
commit
7341ed9d03
@ -1,4 +1,4 @@
|
||||
define([], function () {
|
||||
define(['zepto'], function ($) {
|
||||
function InspectorRegion(element, selection, inspectors) {
|
||||
this.element = element;
|
||||
this.selection = selection;
|
||||
@ -9,7 +9,14 @@ define([], function () {
|
||||
}
|
||||
|
||||
InspectorRegion.prototype.onSelectionChange = function (item) {
|
||||
var $element = $(this.element);
|
||||
var providers = this.inspectors.get(item);
|
||||
|
||||
$element.empty();
|
||||
|
||||
if (factories.length > 0) {
|
||||
providers[0].view(item).show(this.element);
|
||||
}
|
||||
};
|
||||
|
||||
InspectorRegion.prototype.activate = function () {
|
||||
|
Loading…
Reference in New Issue
Block a user