mirror of
https://github.com/nasa/openmct.git
synced 2024-12-19 05:07:52 +00:00
[Tree] Begin using mct-tree for tree representation
This commit is contained in:
parent
cbd9509260
commit
d4b15525ca
@ -49,6 +49,7 @@ define([
|
||||
"./src/directives/MCTScroll",
|
||||
"./src/directives/MCTSplitPane",
|
||||
"./src/directives/MCTSplitter",
|
||||
"./src/directives/MCTTree",
|
||||
"text!./res/templates/bottombar.html",
|
||||
"text!./res/templates/controls/action-button.html",
|
||||
"text!./res/templates/controls/input-filter.html",
|
||||
@ -97,6 +98,7 @@ define([
|
||||
MCTScroll,
|
||||
MCTSplitPane,
|
||||
MCTSplitter,
|
||||
MCTTree,
|
||||
bottombarTemplate,
|
||||
actionButtonTemplate,
|
||||
inputFilterTemplate,
|
||||
@ -389,6 +391,10 @@ define([
|
||||
{
|
||||
"key": "mctSplitter",
|
||||
"implementation": MCTSplitter
|
||||
},
|
||||
{
|
||||
"key": "mctTree",
|
||||
"implementation": MCTTree
|
||||
}
|
||||
],
|
||||
"constants": [
|
||||
|
@ -19,18 +19,6 @@
|
||||
this source code distribution or the Licensing information page available
|
||||
at runtime from the About dialog for additional information.
|
||||
-->
|
||||
<ul class="tree">
|
||||
<li ng-if="!composition">
|
||||
<span class="tree-item">
|
||||
<span class="icon wait-spinner"></span>
|
||||
<span class="title-label">Loading...</span>
|
||||
</span>
|
||||
</li>
|
||||
<li ng-repeat="child in composition">
|
||||
<mct-representation key="'tree-node'"
|
||||
mct-object="child"
|
||||
parameters="parameters"
|
||||
ng-model="ngModel">
|
||||
</mct-representation>
|
||||
</li>
|
||||
</ul>
|
||||
<mct-tree mct-object="domainObject">
|
||||
</mct-tree>
|
||||
|
||||
|
@ -37,9 +37,7 @@ define([
|
||||
return {
|
||||
restrict: "E",
|
||||
link: link,
|
||||
require: [ "mctTree" ],
|
||||
scope: { mctObject: "=" },
|
||||
template: ""
|
||||
scope: { mctObject: "=" }
|
||||
};
|
||||
}
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
define([
|
||||
'angular',
|
||||
'text!../../res/templates/ui/toggle.html'
|
||||
'text!../../res/templates/tree/toggle.html'
|
||||
], function (angular, toggleTemplate) {
|
||||
function ToggleView(state) {
|
||||
this.expanded = !!state;
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
define([
|
||||
'zepto',
|
||||
'text!../../res/templates/ui/tree-label.html'
|
||||
'text!../../res/templates/tree/tree-label.html'
|
||||
], function ($, labelTemplate) {
|
||||
'use strict';
|
||||
|
||||
|
@ -23,7 +23,7 @@
|
||||
|
||||
define([
|
||||
'angular',
|
||||
'text!../../res/templates/ui/node.html',
|
||||
'text!../../res/templates/tree/node.html',
|
||||
'./ToggleView'
|
||||
], function (angular, nodeTemplate, ToggleView) {
|
||||
'use strict';
|
||||
|
@ -30,8 +30,7 @@ define([
|
||||
var $ = angular.element.bind(angular);
|
||||
|
||||
function TreeView() {
|
||||
this.ul = $('<ul>');
|
||||
this.ul.addClass('tree');
|
||||
this.ul = $('<ul class="tree"></ul>');
|
||||
this.nodeViews = [];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user