Plugin Reference
In general, these plugin methods and options can be accessed by calling:
$(elm).popmenu('method_or_option_name', ...)
Options
effect: string = default
since 1.0
fade | slide | none | default
Transition effects for context menu. When set to 'default', effect set to
the assigned context menu will be used.
duration: integer = null
since 1.0
Transition duration in ms if an effect is not 'none'. If set to null, duration set
to the assigned context menu will be used.
Methods
hide: PopMenu
since 1.0
$(elm).popmenu('hide');
Hide context menu if currently being shown.
init: jQuery
since 1.0
$(elm).popmenu('init', menu, options);
Initialize context menu for the selected elements. This method should not be
called directly, instead use default method.
-
menu: Object
The menu object structure basically consists
of id: options pairs. For the list of available
options, please refer to PopMenuItem class.
-
options: Object
Options for the context menu.
show: PopMenu
since 1.0
$(elm).popmenu('show' [, event]);
Show context menu.
-
event: object
Event argument object to be passed. Pass an event object from other events
so the context menu could determine mouse cursor position.
// EXAMPLE //
$(elm).click(function(e) {
$(this).popmenu('show', e);
});