Opened 13 years ago
Closed 11 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: |
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 (2)
Change History (6)
comment:1 Changed 13 years ago by
Milestone: | tbd → 1.3 |
---|---|
Status: | new → assigned |
Changed 12 years ago by
Attachment: | test_MenuGenerator.html added |
---|
comment:2 Changed 12 years ago by
example available here : http://ben.dojotoolkit-fr.org/test_MenuGenerator.html
comment:3 Changed 12 years ago by
Milestone: | 1.3 → future |
---|
need to review for style guide, and ensure docs in place on wiki
comment:4 Changed 11 years ago by
Resolution: | → wontfix |
---|---|
Status: | assigned → closed |
suggest pushing into 3rd party land (dojox) after decouple.
Note: See
TracTickets for help on using
tickets.
test file