Opened 7 years ago

Closed 6 years ago

#18307 closed enhancement (patchwelcome)

MenuItem: support numeric label

Reported by: [email protected] Owned by:
Priority: undecided Milestone: 1.13
Component: Dijit Version: 1.10.1
Keywords: Cc:
Blocked By: Blocking:


If I use number as a label value, MenuItem? crashes.

menu.addChild(new MenuItem?({

label: 1


I must convert it into string.

menu.addChild(new MenuItem?({

label: 1 + ""


Change History (2)

comment:1 Changed 7 years ago by bill

Summary: dijit/MenuItem and label propertyMenuItem: support numeric label
Type: defectenhancement

It's documented as being a string but perhaps could be enhanced to support a number too.

comment:2 Changed 6 years ago by dylan

Milestone: tbd1.12
Resolution: patchwelcome
Status: newclosed

Given that no one has shown interest in creating a patch in more than a year, I'm closing this as patchwelcome. Please let us know if you would like to get involved in helping make this change to Dojo!

Note: See TracTickets for help on using tickets.