jQuery contextMenu plugin & polyfill
fab
class to known classes.callback
(thanks @arashdalir)events.preShow
so you can enable default browser menu if needed (thanks @terwarf)getting started
to the documentation.callback
demo.promis
=> promise
(Issue #633).events.activated
is called without options
as argument (Issue #580).visible
on items once instead of twice. Fixes issue 612.icon
, build
, visible
, disabled
, item callback
and global item callback
). Also if you listen to contextmenu
events, please check if you still get the correct data.yarn run webpack
.opt
and root
arguments are now described as currentMenuData
and rootMenuData
, which are documented in ContextMenuData.function(e, $currentTrigger)
.function(e, $item, key, item, currentMenuData, rootMenuData)
.function(e, key, currentMenuData, rootMenuData)
.$.contextMenu.types
they get called as ContextMenuItemTypeCallback with function(e, item, currentMenuData, rootMenuData)
.contextmenu
events you should always have the data available.$(element).contextMenu('update')
which was broken.{ item: { visible: false } }
it would not stop the menu from showing.