-
Notifications
You must be signed in to change notification settings - Fork 263
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* [ACS-7380] convert context menu to standalone * [ACS-7380] convert context menu to standalone * [ACS-7380] convert context menu to standalone
- Loading branch information
1 parent
c73fb1b
commit 91e1c47
Showing
5 changed files
with
29 additions
and
40 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
lib/core/src/lib/context-menu/context-menu-list.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<div mat-menu class="mat-menu-panel" @panelAnimation> | ||
<div id="adf-context-menu-content" class="mat-menu-content"> | ||
<ng-container *ngFor="let link of links"> | ||
<button *ngIf="link.model?.visible" | ||
[attr.data-automation-id]="'context-' + (link.title || link.model?.title | translate)" | ||
mat-menu-item | ||
[disabled]="link.model?.disabled" | ||
(click)="onMenuItemClick($event, link)"> | ||
<mat-icon *ngIf="link.model?.icon">{{ link.model.icon }}</mat-icon> | ||
<span>{{ link.title || link.model?.title | translate }}</span> | ||
</button> | ||
</ng-container> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters