- [FEATURE] Add
appendTo
option.
- [BUGFIX] Fix deprecation warnings when menu with
title
callback is opened
- [CHANGE] Refactored entry update methods
setEntry(cmd, data)
: Clarify that this method resets all attributes not passed indata
are reset to defaults.
Also, passing a plain title string asdata
is 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 existingenableEntry
andshowEntry
).
- [FEATURE] #59 Allow callbacks for
disabled
,title
, andtooltip
options - [FEATURE] #116
autoFocus
skips leading disabled entries. - [FEATURE] #118 New option
closeOnWindowBlur
- Use
.on()
/.off()
syntax - Add check for missing
.delegate
option - Set @VERSION in minified script
- [FEATURE] #114: Pass
extraData
argument toselect
and 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
ui
argument toopen
event.
- #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
isHeader
for category headers. - Add jQuery UI 1.12 sample with new 'Base' theme
- [CHANGE] #98 Allow to show/hide separators
- [FEATURE] #94 Add
main
field to package.json
- [FEATURE] New option
tooltip
, adds atitle
attribute 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
uiMenuOptions
allows 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: true
can be set tofalse
to prevent opening menus on browser'scontextmenu
event (if you want to use theopen()
method instead). - [FEATURE] New option
preventContextMenuForPopup
to 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
cmd
option.
- [CHANGE] Added ThemeRoller switcher to demo page.
- [FEATURE] Added
data
option for menu entries (Francis Rath).
- [FEATURE] Added
action
option for menu entries.
- [CHANGE] Removed
init
event, addedcreateMenu
event. - [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]
select
event has new parametersui.cmd
andui.target
. - [BUGFIX] Fixed replaceMenu() for
<ul>
defined menus.
- [FEATURE]
position
option (thanks to Jeffrey Dean Altemus).
- [CHANGE] Renamed project from "jquery-contextmenu" to "jquery-ui-contextmenu".
- [FEATURE] Support
taphold
events. - [FEATURE] Show / hide effects configurable.
- [BUGFIX] Fixed markup for disabled entries.
- First release.