[ACA-1544] extensions: toolbar separators and menus (#504)

* toolbar separators

* remove the need for "target" for separators

* simplify code

* menu stub, reducing separators

* toolbar action component

* render menu items

* menu items
This commit is contained in:
Denys Vuika
2018-07-10 20:39:07 +01:00
committed by GitHub
parent 64b0790a0d
commit ad9ce9e88f
14 changed files with 343 additions and 129 deletions

View File

@@ -16,15 +16,9 @@
</button>
<ng-container *ifExperimental="'extensions'">
<adf-toolbar-divider></adf-toolbar-divider>
<button *ngFor="let entry of actions"
mat-icon-button
color="primary"
title="{{ entry.title | translate }}"
(click)="runAction(entry.target.action)">
<mat-icon>{{ entry.icon }}</mat-icon>
</button>
<adf-toolbar-divider></adf-toolbar-divider>
<ng-container *ngFor="let entry of actions">
<aca-toolbar-action [entry]="entry"></aca-toolbar-action>
</ng-container>
</ng-container>
<ng-container *ngIf="!selection.isEmpty">