Ticket #7382 (closed enhancement: wontfix)
[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
Change History
Note: See
TracTickets for help on using
tickets.