Not finding what you are looking for? Request a recipe!
We create our context menu along with our custom items. Set up our event listener to listen for when a context menu is displayed and look up a list item on which right-click occurred. We enable/disable/change context menu items accordingly depending if right-click occurred over a list item or not.