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

25 lines
1.1 KiB
HTML
Raw Normal View History

2019-01-21 10:45:53 +00:00
<ul ng-if="$ctrl.items">
2019-01-28 11:07:46 +00:00
<li ng-repeat="item in $ctrl.items" ng-class="{'selected' : item.selected && !item.excluded, 'included': item.included}">
2019-01-21 10:45:53 +00:00
<vn-horizontal>
<vn-auto class="actions">
<vn-icon icon="keyboard_arrow_up" ng-if="item.childs.length"
ng-click="$ctrl.toggle(item, $event)">
</vn-icon>
<vn-icon icon="keyboard_arrow_down" ng-if="!item.childs"
ng-click="$ctrl.toggle(item, $event)">
</vn-icon>
</vn-auto>
<vn-one class="description">
<vn-horizontal>
2019-01-28 11:07:46 +00:00
<vn-check vn-auto field="item.selected && !item.excluded"
2019-01-21 10:45:53 +00:00
on-change="$ctrl.select(item)">
</vn-check>
<vn-one ng-dblclick="$ctrl.toggle(item)" class="text unselectable">
{{::item.name}}
</vn-one>
</vn-horizontal>
</vn-one>
</vn-horizontal>
<vn-treeview-child items="item.childs"></vn-treeview-child>
</li>
</ul>