Hi All,

I have my text field with segmented buttons with + and - for numbers increment and decrements like below image
Temp.JPG
Logic to increment & Decrements


items: [{
text: '+',
handler: function() {
var temValue =parseInt( Ext.getCmp('mytempId').getValue());
if(isNaN(temValue)){
Ext.getCmp('mytempId').setValue(0);
}else{
Ext.getCmp('mytempId').setValue(temValue+1);
}
}
},{
text: '-',
handler: function() {
var temValue =parseInt( Ext.getCmp('mytempId').getValue());
if(isNaN(temValue)){
Ext.getCmp('mytempId').setValue(0);
}else{
Ext.getCmp('mytempId').setValue(temValue-1);
}
}
}]


Problem is I can Increment value only on click but I need on mouse hold to increase the value.
Can some help to solve this Issue.

Thanks In advance