View Full Version : Increment NumberField by decimals eg, 0.1, 0.2 ...

28 Jun 2011, 7:31 AM
with a NumberField set to type 'float' ... is it possible to

a) get the placeholder to be '0.0' ... or is it not possible to get a placeholder working for a numberfield?

b) I set MinValue to 0.0, MaxValue to 9999.9 ... but the spinner control increments in whole numbers

I am testing in Chrome... is this perhaps a Chrome issue?


28 Jun 2011, 7:45 AM
I'm a little confused because I don't see minValue or maxValue in the API docs. http://dev.sencha.com/deploy/touch/docs/?class=Ext.form.Number I guess it's a documentation bug?

Anyway, they are both in the source if you look behind the docs. Also in the source is a config option called "stepValue". See if that's what you are looking for.

28 Jun 2011, 3:31 PM
Great Thanks !
I found minValue & maxValue in someone's example code somewhere.
I thought there'd be something like that lurking in the background.