The contextMenu Plugin was designed for web applications in need of menus on a possibly large amount of objects. Unlike implementations as a beautiful site's or trendskitchens' this contextMenu treats the menu as the primary object. That means, that a single menu is defined that can be used by multiple objects. Unlike the mentioned plugins, contextMenu doesn't need to bind itself to triggering objects. This allows injecting and removing triggers without having to re-initialize or update contextMenu. contextMenu can provide a simple list of clickable commands, or offer an in-menu form. This makes very simple attribute modification possible. Once a menu is registered, it cannot be altered. That means no commands can be added or removed from the menu. This allows contextMenu to keep a single definition in memory, which enables it to work with hundreds of trigger objects. contextMenu knows the two callbacks show and hide which can be used to update the state of commands within the menu.
Features
- Register contextMenu from javascript
- HTML5 Compatibility
- Management facility for context menus
- It was designed for an application where there are hundreds of elements that may show a context menu
- Intialization speed and memory usage are kept fairly small
- Allows to register context menus without providing actual markup