2019-01-21 10:45:53 +00:00
|
|
|
<ul ng-if="$ctrl.items">
|
2019-02-18 07:37:26 +00:00
|
|
|
<li ng-repeat="item in $ctrl.items"
|
|
|
|
ng-class="{
|
|
|
|
'expanded': item.active,
|
|
|
|
'collapsed': !item.active,
|
|
|
|
'included': item.isIncluded == 1,
|
|
|
|
'excluded': item.isIncluded == 0
|
|
|
|
}">
|
2019-01-21 10:45:53 +00:00
|
|
|
<vn-horizontal>
|
|
|
|
<vn-auto class="actions">
|
2019-02-18 07:37:26 +00:00
|
|
|
<vn-icon icon="keyboard_arrow_down"
|
|
|
|
ng-show="item.sons > 0"
|
|
|
|
ng-click="$ctrl.toggle(item, $event)" >
|
2019-01-21 10:45:53 +00:00
|
|
|
</vn-icon>
|
|
|
|
</vn-auto>
|
2019-02-18 07:37:26 +00:00
|
|
|
<div class="description">
|
|
|
|
<vn-check vn-auto field="item.isIncluded"
|
|
|
|
on-change="$ctrl.select(item, value)" triple-state="true">
|
|
|
|
</vn-check>
|
|
|
|
{{::item.name}}
|
|
|
|
</div>
|
2019-01-21 10:45:53 +00:00
|
|
|
</vn-horizontal>
|
|
|
|
<vn-treeview-child items="item.childs"></vn-treeview-child>
|
|
|
|
</li>
|
|
|
|
</ul>
|