Opened 14 years ago

Closed 12 years ago

#7382 closed enhancement (wontfix)

[cla][patch] Menu generator (use an array of object as menu descripton)

Reported by: iDo Owned by: dante
Priority: high Milestone: future
Component: DojoX Widgets Version:
Keywords: menu dijit.Menu Cc:
Blocked By: Blocking:


This code generate a menu using an array of object to describe it. e.g.

	{id:"i1", onClick:dojo.hitch(this,"foo"), label : "foo"},
	{id:"i2", label : "-"},
	{id:"i3", label : "bar",subMenuId:"i3_Sub", subMenu : 
			{id:"i3_Sub1", onClick:dojo.hitch(this,"foobar"), label : "foo bar", disabled:true},
			{id:"i3_Sub2", onClick:dojo.hitch(this,"foobaz"), label : "foo baz", hidden:true}
			{id:"i3_Sub3", onClick:dojo.hitch(this,"foobarbaz"), label : "foo bar baz"}

Attachments (2)

test_MenuGenerator.html (3.6 KB) - added by iDo 14 years ago.
test file
MenuGenerator.js (9.0 KB) - added by iDo 13 years ago.
review of style guide

Download all attachments as: .zip

Change History (6)

comment:1 Changed 14 years ago by dante

Milestone: tbd1.3
Status: newassigned

Changed 14 years ago by iDo

Attachment: test_MenuGenerator.html added

test file

comment:3 Changed 14 years ago by dante

Milestone: 1.3future

need to review for style guide, and ensure docs in place on wiki

Changed 13 years ago by iDo

Attachment: MenuGenerator.js added

review of style guide

comment:4 Changed 12 years ago by dante

Resolution: wontfix
Status: assignedclosed

suggest pushing into 3rd party land (dojox) after decouple.

Note: See TracTickets for help on using tickets.