mirror of
https://github.com/nasa/openmct.git
synced 2025-06-17 14:48:13 +00:00
[Tree] Begin using mct-tree for tree representation
This commit is contained in:
@ -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 = [];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user