44 lines
1.5 KiB
HTML
44 lines
1.5 KiB
HTML
|
|
<ul ng-if="$ctrl.items">
|
|
<li ng-repeat="item in $ctrl.items" >
|
|
<div
|
|
ng-class="{expanded: item.active}"
|
|
ng-click="$ctrl.toggle($event, item)"
|
|
class="node clickable">
|
|
<vn-icon
|
|
class="arrow"
|
|
ng-class="{invisible: !item.sons}"
|
|
icon="keyboard_arrow_down"
|
|
translate-attr="::{title: 'Toggle'}">
|
|
</vn-icon>
|
|
<vn-treeview-content
|
|
item="::item">
|
|
</vn-treeview-content>
|
|
<!--
|
|
<vn-check
|
|
vn-acl="{{$ctrl.aclRole}}"
|
|
ng-if="$ctrl.selectable"
|
|
field="item.selected"
|
|
disabled="$ctrl.treeview.disabled"
|
|
on-change="$ctrl.select(item, value)"
|
|
triple-state="true"
|
|
label="{{::item.name}}">
|
|
</vn-check>
|
|
-->
|
|
<section class="buttons">
|
|
<vn-icon-button title="Create"
|
|
icon="add_circle"
|
|
ng-click="$ctrl.treeview.onCreate(item, item.childs)">
|
|
</vn-icon-button>
|
|
<vn-icon-button title="Remove"
|
|
icon="delete"
|
|
ng-click="$ctrl.treeview.onRemove(item, $ctrl.items, $ctrl.parent)">
|
|
</vn-icon-button>
|
|
</section>
|
|
</div>
|
|
<vn-treeview-childs
|
|
items="item.childs"
|
|
parent="::item">
|
|
</vn-treeview-childs>
|
|
</li>
|
|
</ul> |