salix/front/core/components/treeview/childs.html

44 lines
1.5 KiB
HTML
Raw Normal View History

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" >
<div
2019-10-02 07:54:52 +00:00
ng-class="{expanded: item.active}"
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}"
icon="keyboard_arrow_down"
2019-10-02 12:12:17 +00:00
translate-attr="::{title: 'Toggle'}">
</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
vn-acl="{{$ctrl.aclRole}}"
ng-if="$ctrl.selectable"
field="item.selected"
2019-10-02 12:12:17 +00:00
disabled="$ctrl.treeview.disabled"
on-change="$ctrl.select(item, value)"
triple-state="true"
label="{{::item.name}}">
</vn-check>
2019-10-02 12:12:17 +00:00
-->
2019-10-04 09:01:47 +00:00
<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>
2019-10-02 07:54:52 +00:00
<vn-treeview-childs
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>