mirror of
https://github.com/nasa/openmct.git
synced 2025-01-18 10:46:42 +00:00
2ab3f5f5f9
Add a general-purpose ToggleController for things that need to expand and contract. WTD-574.
23 lines
902 B
HTML
23 lines
902 B
HTML
<span ng-controller="ToggleController as toggle">
|
|
<span class="tree-item menus-to-left" ng-controller="TreeNodeController">
|
|
<span class='ui-symbol view-control'
|
|
ng-click="toggle.toggle()"
|
|
ng-if="model.composition !== undefined">
|
|
{{toggle.isActive() ? "v" : ">"}}
|
|
</span>
|
|
<mct-representation key="'label'"
|
|
mct-object="domainObject"
|
|
parameters="parameters"
|
|
ng-click="parameters.callback(domainObject)"
|
|
ng-class="{selected: node.isSelected}">
|
|
</mct-representation>
|
|
</span>
|
|
<span class="tree-item-subtree"
|
|
ng-show="toggle.isActive()"
|
|
ng-if="model.composition !== undefined">
|
|
<mct-representation key="'tree'"
|
|
parameters="parameters"
|
|
mct-object="node.domainObject">
|
|
</mct-representation>
|
|
</span>
|
|
</span> |