openmct/platform/commonUI/general/res/templates/tree-item.html
Victor Woeltjen 2ab3f5f5f9 [Common UI] Generalize ToggleController
Add a general-purpose ToggleController for things that
need to expand and contract. WTD-574.
2014-11-24 07:49:50 -08:00

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>