Opened 13 years ago

Closed 11 years ago

#601 closed defect (fixed)

context menu improvements

Reported by: Tiago Freitas Leal tfl netcabo pt Owned by: bill
Priority: high Milestone: 1.2.1
Component: Dijit Version: 0.2
Keywords: tooltip Cc:
Blocked By: Blocking:

Description (last modified by bill)

1-In order to have different context menus on different elements, one must specify all targetNodeIds that a given context menu applies to. There is no way to specify a context menu for class(es). We end up having an enormous list of IDs for each context menu.

2-There is no way to specify a default context menu for all the page, except for elements that have a specific context menu (ids and classes).

Change History (11)

comment:1 Changed 13 years ago by bill

Sounds like behaviors.

comment:2 Changed 13 years ago by anonymous

you can, afaics, specify a default menu for all elements by setting contextMenuForWindow="true", unless you mean something different

comment:3 Changed 13 years ago by Tiago Freitas Leal tfl netcabo pt

setting contextMenuForWindow="true" overrides all other context menus including TreeContextMenu? (tested 01.05.2006 and 05.05.2006)

comment:4 Changed 13 years ago by dylan

Milestone: 0.6

comment:5 Changed 13 years ago by dylan

Owner: changed from anonymous to alex

comment:6 Changed 12 years ago by bill

Owner: changed from alex to simonjb

#1 can be done with dojo.query and it's returned NodeList?. Might be nice to make the interface nicer though, like passing the dojo.query pattern directly to the widget

#2 is worth looking at.

comment:7 Changed 12 years ago by Adam Peller

Component: WidgetsDijit

comment:8 Changed 12 years ago by bill

Milestone: 1.01.1
Owner: changed from simonjb to bill

comment:9 Changed 12 years ago by bill

Milestone: 1.12.0

comment:10 Changed 11 years ago by alex

Milestone: 2.01.3

Milestone 2.0 deleted

comment:11 Changed 11 years ago by bill

Description: modified (diff)
Milestone: 1.31.2.1
Resolution: fixed
Status: newclosed

#2 is working too, see http://download.dojotoolkit.org/release-1.2.1/dojo-release-1.2.1/dijit/tests/test_Menu.html. (Push the "create programmatic menu" button and then see the special menu in the <div> above the <button>.)

Note: See TracTickets for help on using tickets.