2019-10-02 07:54:52 +00:00
|
|
|
|
2019-10-02 12:12:17 +00:00
|
|
|
<ul ng-if="$ctrl.items">
|
2019-10-02 07:54:52 +00:00
|
|
|
<li ng-repeat="item in $ctrl.items" >
|
2019-10-01 09:15:15 +00:00
|
|
|
<div
|
2019-10-02 07:54:52 +00:00
|
|
|
ng-class="{expanded: item.active}"
|
2019-10-01 09:15:15 +00:00
|
|
|
ng-click="$ctrl.toggle($event, item)"
|
|
|
|
class="node clickable">
|
|
|
|
<vn-icon
|
|
|
|
class="arrow"
|
2019-10-02 12:12:17 +00:00
|
|
|
ng-class="{invisible: !item.sons}"
|
2019-10-01 09:15:15 +00:00
|
|
|
icon="keyboard_arrow_down"
|
2019-10-02 12:12:17 +00:00
|
|
|
translate-attr="::{title: 'Toggle'}">
|
2019-10-01 09:15:15 +00:00
|
|
|
</vn-icon>
|
2019-10-02 07:54:52 +00:00
|
|
|
<vn-treeview-content
|
2019-10-02 12:12:17 +00:00
|
|
|
item="::item">
|
2019-10-02 07:54:52 +00:00
|
|
|
</vn-treeview-content>
|
|
|
|
<!--
|
|
|
|
<vn-check
|
2019-10-01 09:15:15 +00:00
|
|
|
vn-acl="{{$ctrl.aclRole}}"
|
|
|
|
ng-if="$ctrl.selectable"
|
|
|
|
field="item.selected"
|
2019-10-02 12:12:17 +00:00
|
|
|
disabled="$ctrl.treeview.disabled"
|
2019-10-01 09:15:15 +00:00
|
|
|
on-change="$ctrl.select(item, value)"
|
|
|
|
triple-state="true"
|
|
|
|
label="{{::item.name}}">
|
|
|
|
</vn-check>
|
2019-10-02 12:12:17 +00:00
|
|
|
-->
|
2019-10-01 09:15:15 +00:00
|
|
|
<vn-icon-button
|
2019-10-02 12:12:17 +00:00
|
|
|
icon="add_circle"
|
|
|
|
ng-click="$ctrl.treeview.onAdd(item, item.childs)">
|
|
|
|
</vn-icon-button>
|
|
|
|
<vn-icon-button
|
|
|
|
icon="delete"
|
|
|
|
ng-click="$ctrl.treeview.onRemove(item, $ctrl.items, $ctrl.parent)">
|
2019-10-02 07:54:52 +00:00
|
|
|
</vn-icon-button>
|
2019-10-01 09:15:15 +00:00
|
|
|
</div>
|
2019-10-02 07:54:52 +00:00
|
|
|
<vn-treeview-childs
|
2019-10-01 09:15:15 +00:00
|
|
|
items="item.childs"
|
2019-10-02 12:12:17 +00:00
|
|
|
parent="::item">
|
2019-10-02 07:54:52 +00:00
|
|
|
</vn-treeview-childs>
|
|
|
|
</li>
|
2019-10-02 12:12:17 +00:00
|
|
|
</ul>
|