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

42 lines
1.4 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 05:41:24 +00:00
<vn-icon-button title="Create"
2019-10-02 12:12:17 +00:00
icon="add_circle"
2019-10-04 05:41:24 +00:00
ng-click="$ctrl.treeview.onCreate(item, item.childs)">
2019-10-02 12:12:17 +00:00
</vn-icon-button>
2019-10-04 05:41:24 +00:00
<vn-icon-button title="Remove"
2019-10-02 12:12:17 +00:00
icon="delete"
ng-click="$ctrl.treeview.onRemove(item, $ctrl.items, $ctrl.parent)">
2019-10-02 07:54:52 +00:00
</vn-icon-button>
</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>