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.
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.
onGroupHover to get information
about the group being hovered over.
See also the per-group tooltips example.