Login Register

context menu

Creating context menu dynamically

Hi,

I have many different divs or widgets and I need to create for each of them different context menu, but I can't use ids, because of later I will have maybe hundreds of different menus and items may change often.

Is there any way to do this?

I try this:
var menuWidget = ... // programatically created menu
dijit.popup.open({popup: menuWidget, x: evt.pageX, y: evt.pageY});

but I don't know how to close and open it correctly {like onRightClick: function(){menu.toogle()}}

Thanks

Patch for Menu position in iframe

Hello,

How you get correct memu popup positon in iframe?
I can't get correct menu position for example if I used the context menu in editor.

Here is patch for Menu to get menu position adjust.

Index: Menu.js
===================================================================
--- Menu.js (revision 14514)
+++ Menu.js (working copy)
@@ -247,7 +247,12 @@
x = coords.x + 10;
y = coords.y + 10;
}
-
+ var offset = this.displayOffSet();
+ if(offset) {
+ x = x + offset.l;
+ y = y + offset.t;
+ }
+

Editor customization help

Looking through the Book of Dojo and searching forum posts and the web, I see that the Dojo Dijit Editor component is designed to be a generic, customizable rich text or custom syntax editor. However, the documentation is scant. Any help, examples, or general guidance on any of the questions below is greatly appreciated:

1. Plugins are used to add functional buttons to the toolbar. Is this correct? Does anyone have a working example, preferably with lots of comments? I'd like to be able to customize the toolbar with non-default icons that have custom functionality.

Right Click Context Menu Error in dojoGrid

I am facing problem with Right Click Context Menu for a selected row of Dojo Grid. If I do right click then menue appeares but as soon as I move cursor over it it dissapeares and selected row comes at the top?

I works fine with unselected row?

Please provide solution to fix this problem.

thanks
Manjul

Dnd Items: Programatically Managed (move, add, insert, create, delete) via context menu (dojo 1.0.0)

Conflict: I've run into a show stopper with this dnd interface. I need to be able to programatically delete, or create/insert new dnd items.

Scenario: a user will right click an existing menu Item and choose either create or delete. The user chooses create; where the existing item(s) are selected, a new item with a group link will take there place, and those selected items will be migrated to a new dnd box.

Syndicate content