Have a look at qx.util.format.NumberFormat. T.
On 03/19/2012 02:59 PM, Pierre Dehaen wrote: > Greetings, > > I'm relatively new on Qooxdoo. I searched the archive for the following issue > without success. > > I'm looking for a way to render a number in a textField() in the same way > qx.ui.table.cellrenderer.Number() allows me to do, i.e. > minimum/maximumFractionDigits, > thousand separators, etc. > > For the moment I only have to display a readonly value coming from a database > but I guess > later I'll have let the user enter data in other numerical fields, so I > suppose there must be a 2- > way conversion: > - from user input to plain number (and to database): 1,234.56 -> 1234.56; > - from plain number to display-format number: 1234.56 -> 1,234.56. > > Any advises please ? > > TIA > Pierre > > > > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > ------------------------------------------------------------------------------ This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
