25 lines
1.1 KiB
HTML
25 lines
1.1 KiB
HTML
<ul ng-if="$ctrl.items">
|
|
<li ng-repeat="item in $ctrl.items" ng-class="{'selected' : item.selected && !item.excluded, 'included': item.included}">
|
|
<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.sons > 0 && !item.childs"
|
|
ng-click="$ctrl.toggle(item, $event)">
|
|
</vn-icon>
|
|
</vn-auto>
|
|
<vn-one class="description">
|
|
<vn-horizontal>
|
|
<vn-check vn-auto field="item.selected && !item.excluded"
|
|
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> |