3

Is there a button in ExtJS with increment/decrement feature (something like that)? I have some numberfields with values that are usually incremented/decremented when edited and this button would be very helpful. Note that it is not critical for me to stick the button to my numberfield, I mean I can handle it as a separate object.

Any bright ideas? Thanks in advance!


UPDATE: Two narrow buttons sticked together would be a solution too.. Anybody knows how to place two buttons that way in a single grid toolbar?

Giku Promitt
  • 610
  • 1
  • 5
  • 19

3 Answers3

2

Yes, in Ext 4 the NumberField has exactly that behavior (see this as one example). This is a change from Ext 3, which required a spinner user extension I believe for such behavior.

Brian Moeskau
  • 20,103
  • 8
  • 71
  • 73
2

You can use this 3rd party extension...

http://www.java2s.com/Code/JavaScript/Ext-JS/CustomSpinnerWidget.htm

It might require a little debugging as its for ExtJS 3.0, not 3.3

JamesHalsall
  • 13,224
  • 4
  • 41
  • 66
1

No, in default package there is no such control. May be as some external package somewhere.

gaRex
  • 4,144
  • 25
  • 37