Questions tagged [jquery-ui-contextmenu]

A jQuery plugin that provides a context menu (based on the standard jQueryUI menu widget).

jQueryUI Contextmenu is a jQuery plugin that provides a context menu (based on the standard jQueryUI menu widget).

Some major features of the plugin are:

  • Define menus from <ul> element or definition list (i.e. [{title: "Paste", cmd: "paste"}, ...]).
  • Themable using jQuery ThemeRoller.
  • Supports delegation (i.e. can be bound to elements that don't exist at the time the context menu is initialized).
  • Optional support for touch devices.

More information can be found at the github page.

22 questions
5
votes
1 answer

Context menu on nested child element also shows parent context menu

I have multiple DOM elements with context menus. When one element is a child of the other and I invoke the context menu of the inner child, I also see the context menu from the parent. This is implemented with the jquery-ui.contextmenu plugin. Is…
nigel
  • 71
  • 2
  • 6
5
votes
3 answers

jquery-ui menu as context menu

How do I use http://jqueryui.com/menu/ as a context menu on right mouse click. Is there a plugin or something? jquery-1.9.0 jquery-ui-1.10.0
user007
  • 1,064
  • 3
  • 12
  • 29
4
votes
3 answers

ContextMenu integration with jQuery FullCalendar

I'm using Adam Shaw's FullCalendar control along with jQuery. I would like to add a context menu to events and days. I was able to achieve so by using Martin Wendt's Context Menu control. My code for registering the menu on events looks like…
user2872534
  • 163
  • 1
  • 10
2
votes
1 answer

Using Context Menu with FullCalendar

I am trying to use Martin Wendt's context menu control with FullCalendar in a similar manner to this question. A context menu is supposed to appear whenever an event is right clicked but the problem is that I am getting the following javascript…
2
votes
1 answer

Showing Customized Context Menu on clicking shapes(objects of fabric.js) in Canvas

I'm using fabric.js to create shapes on canvas . on right click on the shapes i want to show a context menu based on the shape selected. I'm able to capture the right click event and find which object the right click is done. but i don know how to…
2
votes
1 answer

Jquery UI-ContextMenu trigger menu on text selection

I am using the jquery-ui-contextmenu jquery plugin. I have several dynamically generated divs each with a pre tag. What i want to is to initialize the plugin once and when a user highlights text and releases the left mouse button to trigger the…
chewymole
  • 41
  • 7
1
vote
1 answer

Jquery contextMenu title and function on submenu

I'm creting a jquery context menu, using https://swisnl.github.io/jQuery-contextMenu/ . I've sucessfully done the creation part of the submenu. I had to use build, in order to have some data that is only available on runtime. This data appears on a…
lrente
  • 1,070
  • 1
  • 9
  • 27
1
vote
0 answers

apply functions for contextMenu on each event in FullCalendar.js

I'm working with Fullcalendar.js and I set for each event a Simple Contextmenu that makes a specified function (change status when confirming a medical appointment). Next code sample works fine only when i have an Event in a day…
Joan Paz
  • 25
  • 5
1
vote
1 answer

Passing attributes from a JQuery-UI-ContextMenu trigger to the menu construct

I am trying to access attributes on the DIV tag that is acting as the trigger for a JQuery-UI Context Menu, but am struggling. In a school context, I will have the name of a student in the text of the DIV, but I need to also pass through an ID…
Richard
  • 13
  • 2
1
vote
0 answers

How to close contextmenu when mouse leaves it

I'm using jquery-ui-contextmenu. The menu stays opened until a mouse click is done elsewhere. I want the menu to close when the mouse leaves it. I tried: blur: function(event, ui) { $("#tree").contextmenu("close"); }, but the menu is closed…
albar
  • 3,020
  • 1
  • 14
  • 27
0
votes
1 answer

how can i make a dynamic context menu

https://swisnl.github.io/jQuery-contextMenu I am using the context menu here $.contextMenu({ selector: '.selectedItem', // trigger: 'none', callback: function (key, options) { var m = "clicked: " + key; …
0
votes
1 answer

Using jQuery contextmenu to move items between lists - attach to new event after finished

I have 2 lists, A and B. I use A context menu (right click menu) which moves the item onto the other list but when I right click this item it is using its original data and classes. How do I achieve this? Do I need to attach the item to the new list…
ThurstonLevi
  • 664
  • 13
  • 34
0
votes
1 answer

How to use setTitle since setEntry is deprecated

i have an contextmenu which gets filled with an async server request. While its loading i am prefilling this menu like this. $(document).contextmenu("setEntry", "test", "(loading...)"); But i've seen that setEntry is deprecated. So i would like to…
0
votes
1 answer

How to disable right-clicks on Plotly-Object?

I want to use a contextmenu (jQuery contextMenu) on top of a Plotly object. The problem is that, when I select multiple elements with the Box- or Lasso-select tool and then right-click on a bar, it triggers a click event on that one bar and the…
SeGa
  • 9,454
  • 3
  • 31
  • 70
0
votes
1 answer

How to append menu to some element, rather then ? appendTo?

If i use Jquery Context menu on my page, then all html code appears inside BODY tag. Right before closing I need that this html code located inside MY div with id="mydiv" . I need it for my z-index issue (in fullscreen mode this menu not visible,…
Evgeny
  • 11
  • 3
1
2