3 * Copyright (c) 2017 ZTE Corporation.
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Eclipse Public License v1.0
6 * and the Apache License 2.0 which both accompany this distribution,
7 * and are available at http://www.eclipse.org/legal/epl-v10.html
8 * and http://www.apache.org/licenses/LICENSE-2.0
11 * ZTE - initial API and implementation and/or initial documentation
14 <accordion-group *ngFor="let category of nodeCategories" [isOpen]="category.collapse" #group>
15 <div accordion-heading class="toolbar-head">
16 <i class="fa fold-icon" [ngClass]="{'fa-chevron-down': group?.isOpen, 'fa-chevron-right': !group?.isOpen}"></i>
17 <i class="fa fa-th-list"></i>
18 <span>{{ getDisplayName(category) }}</span>
20 <div *ngFor="let nodeType of category.nodes">
21 <div *ngIf="(nodeType.type === nodeTypeEnum[nodeTypeEnum.restTask] && supportRest) || (nodeType.type !== nodeTypeEnum[nodeTypeEnum.restTask])"
22 [attr.name]="getDisplayName(nodeType)" [attr.nodeTypeId]="nodeType.id" [attr.nodeType]="nodeType.type"
23 class="item ui-draggable">
24 <img [src]="getImageUrl(nodeType)"/>
25 <span>{{ getDisplayName(nodeType) }}</span>