You may partially recognize this example, is is the Example: Using NodeList - Simple
with slight modification, and by adding the context menu to the boxes.
Usage:
Click on each box to change the box text temporarily ... this was the original Example's purpose.
Now, if you right-click on a box, a custom context menu is presented to take different actions.
duck
duck
duck
duck
duck
duck
duck
Notes:
The Y.ContextMenuView View is attached to the "ul .box-row" as the trigger node, and the trigger target is the "li" elements.
Listeners are defined to fire when right-click lands on a target node, etc... See the source code for this page.