I have successfully found how to initialise a context menu on the angular-tree-component
const actionMapping: IActionMapping = {
mouse: {
contextMenu: (tree, node, $event) => {
$event.preventDefault();
alert(`context menu for ${node.data.name}`);
}
},
};
but i can't find any documentation on how to actually build and display a menu. So how would I, for example, display a context menu of 2 items {Action A, Action B) with click events for each item?
thanks ...