PDA

View Full Version : Spinner events



Mycoding
26 Feb 2011, 12:28 AM
Please give me advice.
I tryed to use events in spinner example, but none works.
Code is here


xtype: 'spinnerfield',
fieldLabel: '?????????? ?????????',
id: 'numberVariant',
minValue: 0,
maxValue: 100,
allowDecimals: true,
decimalPrecision: 1,
incrementValue: 1,
value:6,
accelerate: true,
listeners:{
mousedown:function(){
alert(1);
},
pageUp:function(){
alert(1);
},
change:function(spinner, newValue, oldValue){
console.log(newValue);
console.log(oldValue);
}
}


I need change event with new value.
Is it bug?