jQuery contextMenu - a management facility for context menus

jQuery contextMenu was designed for web applications in need of menus on a possibly large amount of objects. This contextMenu treats the menu as the primary object. That means, that a single menu is defined that can be used by multiple objects. This context menu plugin doesn't need to bind itself to triggering objects. This allows injecting and removing triggers without having to re-initialize or update contextMenu.

 

This plugin 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. This allows en/disabling commands, changing icons or updating the values of contained <input> elements.

 

jQuery contextMenu - Features: 

  • trigger contextMenu with right-click, left-click, hover or own custom trigger events
  • delegated event handling removing the need for re-initialization when trigger objects are added / removed
  • dynamic on-demand menu creation
  • optional icons for commands
  • input elements (text, textarea, checkbox, radio, select) within the menu
  • custom html elements (command free)
  • show/hide callbacks to update the state of commands
  • small memory footprint even with hundreds of trigger objects
  • adjust position of menu to fit in viewport
  • enable / disable commands
  • nested sub-menus
  • full keyboard interaction
  • HTML5 <menu> support
  • CSS is for styling, javascript is not...

 

w10schools
2014-02-06 00:51:10
Comments
Leave a Comment

Please login to continue.