aboutsummaryrefslogtreecommitdiffstats
path: root/catalog-ui/src/app/ng2/components/hierarchy-navigtion/hierarchy-navigation.component.html
blob: 40a1c37ceea4448d6250e890373fc78a4bcca3fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<div class="navigation-wrapper">
    <div class="node-item" *ngFor="let item of displayData" (click)="onClick($event, item)">
        <div class="node-data-wrapper" [ngClass]="{'selected': selectedItem && selectedItem === item[displayOptions.idProperty]}">
            <span class="node-data" [ngClass]="{'mark':item[displayOptions.valueProperty] === displayOptions.searchText}">{{item[displayOptions.valueProperty]}}</span>
        </div>
        <div class="children-node" *ngIf="item[displayOptions.childrenProperty]">
            <hierarchy-navigation class="children-hierarchy" [displayData]="item[displayOptions.childrenProperty]"
                                  [selectedItem]="selectedItem"
                                  [displayOptions]="displayOptions"
                                  (updateSelected)="onSelectedUpdate($event)"></hierarchy-navigation>
        </div>
    </div>
</div>