Ticket #7382 (closed enhancement: wontfix)

Opened 2 years ago

Last modified 11 days ago

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

Reported by: iDo Owned by: dante
Priority: normal Milestone: future
Component: DojoX Widgets Version:
Severity: normal Keywords: menu dijit.Menu
Cc:

Description

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

test_MenuGenerator.html (3.6 kB) - added by iDo 23 months ago.
test file
MenuGenerator.js (9.0 kB) - added by iDo 18 months ago.
review of style guide

Change History

Changed 2 years ago by dante

  • status changed from new to assigned
  • milestone changed from tbd to 1.3

Changed 23 months ago by iDo

test file

Changed 23 months ago by iDo

Changed 20 months ago by dante

  • milestone changed from 1.3 to future

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

Changed 18 months ago by iDo

review of style guide

Changed 11 days ago by dante

  • status changed from assigned to closed
  • resolution set to wontfix

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

Note: See TracTickets for help on using tickets.