I'm trying to create a --seemingly simple-- thing - I would like to be able to create a custom context menu that displays an "X," as a delete option for some elements on my page. Ideally, I would use an external library for this functionality instead of writing another component myself, as I'm attempting to keep this project down to one component file (for reasons I don't have time to put in this question).
I have tried what seems like the perfect library already: https://github.com/isaacplmann/ngx-contextmenu, but it has not worked as intended.
The menu simply appears broken an unusuable, like so:

The (execute) event attached to the X never fires, and the menu clearly does not display as intended. If anyone has some insight into why this isn't working, this is the code I am currently using:
The element the menu is attached to:
<div
id="playhead"
(mousedown)="movePlayheadByMouse()"
[contextMenu]="deleteMenu"
>
<span id="playhead-top">⛊</span>
<div id="playhead-line"></div>
</div>
The menu itself:
<context-menu #deleteMenu>
<ng-template contextMenuItem (execute)="print('click')">X</ng-template>
</context-menu>
The print function (just a log to the console)
private print(val : string) : void
{
console.log(val)
}
This ngx-context-menu component doesn't seem like it has a ton of support, so I'm interested in trying other methods. So my questions for you all are:
1) Do you know of any other custom-menu component libraries that will work well for this purpose?
OR
2) Do you know how to change the the Angular Material md-menu trigger to right-click instead of left-click? (which would allow me to use Angular Material's md-menu in this situation?)
Thanks! Lars