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

25 lines
899 B
HTML

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