Opened 7 years ago

Closed 7 years ago

#15387 closed enhancement (invalid)

More Information About Patterns in dijit.form.NumberTextBox & dijit.form.NumberSpinner

Reported by: Fergus Hadley Owned by: haysmark
Priority: undecided Milestone: tbd
Component: Documentation Version: 1.7.2
Keywords: Cc: Adam Peller
Blocked By: Blocking:

Description

It is difficult to see how to write specific patterns to format the number-based dijits. It would be very useful if someone with a good understanding of the code could add something to the docs:

http://dojotoolkit.org/reference-guide/1.7/dijit/form/NumberSpinner.html http://dojotoolkit.org/reference-guide/1.7/dijit/form/NumberTextBox.html

Change History (4)

comment:1 Changed 7 years ago by bill

Owner: set to Douglas Hays
Status: newassigned

comment:2 Changed 7 years ago by Douglas Hays

Cc: Adam Peller added
Owner: changed from Douglas Hays to haysmark

peller, is there number pattern (#,#0.#00) doc that I can point to?

comment:3 Changed 7 years ago by Adam Peller

There's a link in the inline documentation for the pattern prop in dojo/number Unfortunately, I don't think the API parser has picked this up for a while.

http://www.unicode.org/reports/tr35/#Number_Format_Patterns

I think the unicode stuff is based off the Java NumberFormat class.

comment:4 Changed 7 years ago by haysmark

Resolution: invalid
Status: assignedclosed

Both of the cited pages link here:

http://dojotoolkit.org/reference-guide/1.7/quickstart/numbersDates.html#quickstart-numbersdates

This page gives the Unicode table inline and Adam's link to the full Unicode description of the format.

Note: See TracTickets for help on using tickets.