## FoamTree context menu

Using the `onGroupClick` and `onGroupHover` event listeners you can integrate FoamTree with your favourite context menu library and create custom per-group menus.

This demo uses the tooltip library to build a simple context menu. Right-click on some group to see the menu.

#### What's in the code?

- A simple utility for tracking mouse position and showing or hiding the context menu.
- Using `onGroupClick` to get notification of clicks happening over the groups. The listener inspects the `secondary` property of the event to react only on right-button clicks.
- Using `onGroupHover` to get information about the group being hovered over.

See also the per-group tooltips example.