- [FEATURE] Add
appendTooption.
- [BUGFIX] Fix deprecation warnings when menu with
titlecallback is opened
- [CHANGE] Refactored entry update methods
setEntry(cmd, data): Clarify that this method resets all attributes not passed indataare reset to defaults.
Also, passing a plain title string asdatais deprecated: usesetTitle()instead.- Add method
updateEntry(cmd, data).
Example:updateEntry("info", {title: "Show info...", enable: false})
UnlikesetEntry(), this method only updates menu attibutes that are passed indata, leaving other attributes intact. - Add methods
getEntry(),getEntryWrapper(),setIcon,setTitle(in addition to the existingenableEntryandshowEntry).
- [FEATURE] #59 Allow callbacks for
disabled,title, andtooltipoptions - [FEATURE] #116
autoFocusskips leading disabled entries. - [FEATURE] #118 New option
closeOnWindowBlur - Use
.on()/.off()syntax - Add check for missing
.delegateoption - Set @VERSION in minified script
- [FEATURE] #114: Pass
extraDataargument toselectand other events. The same ui.extraData instance is passed to all events of a open-select-close sequence, so it can also be used to pass data between events.
- [FEATURE] #113: Pass
uiargument toopenevent.
- #108: Update AMD dependency to be compatible with the jQuery 1.12 layout: "jquery-ui/ui/widgets/menu" NOTE: this is not backwards compatible with jQuery 1.11 and before: http://jqueryui.com/upgrade-guide/1.12/#official-package-on-npm
- [BUGFIX] #109 Fix
setEntry(title)for titles containing icons - [BUGFIX] #110 Fix
setEntry({...})for jQuery UI 1.12
- [FEATURE] Test with jQuery 3
- [FEATURE] #104 Allow to pass mouse click events to
open() - Update grunt to 1.0
- Upate QUnit to 1.23 and refactor tests to use
assert
- [FEATURE] Support jQuery UI 1.12 (wrap menu items in separate
<div>tags) - [FEATURE] #100 new menu option
isHeaderfor category headers. - Add jQuery UI 1.12 sample with new 'Base' theme
- [CHANGE] #98 Allow to show/hide separators
- [FEATURE] #94 Add
mainfield to package.json
- [FEATURE] New option
tooltip, adds atitleattribute to the menu markup
- [FEATURE] New option
autoFocus, defaults to false - [BUGFIX] #82 Fixed AMD dependencies
- [CHANGE] #82 Add "jquery-ui/menu" as AMD dependency
- [FEATURE] #85 Allow custom classes per entry
- [BUGFIX] #88 Exception when target element is deleted in select event
- [FEATURE] Publish on npm Registry
- [FEATURE] Publish on cdnjs
- [FEATURE] Include a source map file
- [FEATURE] New option
addClass, defaults to "ui-contextmenu"
- [FEATURE] #80 setEntry() supports creating nested menus
- [FEATURE] #81 beforeOpen event accepts deferred as return value
- [BUGFIX] entry data attached to parentLi instead of
<a> - Use jscs
- [FEATURE] AMD support (topolm).
- [FEATURE] CDN support on jsDelivr.
- [FEATURE] #27: New option
uiMenuOptionsallows to pass custom options to UI Menu Widget.
- [CHANGE] Use data-command="copy" instead of
<a href='...'>to store command ids. - [FEATURE] Support jQuery UI 1.11.
- [FEATURE] Support bower.
- [BUGFIX] #58: 'replaceMenu' in beforeOpen causing select event to lose ui.target
- [FEATURE] New optional parameter open(..., extraData).
- [FEATURE] New option
autoTrigger: truecan be set tofalseto prevent opening menus on browser'scontextmenuevent (if you want to use theopen()method instead). - [FEATURE] New option
preventContextMenuForPopupto prevent opening the browser's system context menu on menu entries. - [CHANGE]
setEntry()andreplaceMenu()now allow to define titles with HTML markup.
- [BUGFIX] Fixed #44 'Double click on .hasmenu currentTarget empy'
- [BUGFIX] Fixed #46 'Not working on XHTML page' (poofeg)
- Added test matrix for different platforms.
- [CHANGE] Detection of separators compliant with UI Menu 1.10
- [BUGFIX] Fixed setEntry for entries that don't have icons and handle missing
cmdoption.
- [CHANGE] Added ThemeRoller switcher to demo page.
- [FEATURE] Added
dataoption for menu entries (Francis Rath).
- [FEATURE] Added
actionoption for menu entries.
- [CHANGE] Removed
initevent, addedcreateMenuevent. - [CHANGE] Added unit tests.
- [FEATURE] Added
getMenu()andisOpen()methods. - [BUGFIX] Fixed custom position sample.
- [CHANGE] Changed widget namespace from 'ui' to 'moogle'.
- [CHANGE] Default position is now at click event.pageX/Y.
- [CHANGE] Show-animation now faster by default.
- [FEATURE]
selectevent has new parametersui.cmdandui.target. - [BUGFIX] Fixed replaceMenu() for
<ul>defined menus.
- [FEATURE]
positionoption (thanks to Jeffrey Dean Altemus).
- [CHANGE] Renamed project from "jquery-contextmenu" to "jquery-ui-contextmenu".
- [FEATURE] Support
tapholdevents. - [FEATURE] Show / hide effects configurable.
- [BUGFIX] Fixed markup for disabled entries.
- First release.