Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/extjs/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Extjs Sencha Touch 2.3:微调器字段增加0.1_Extjs_Sencha Touch 2 - Fatal编程技术网

Extjs Sencha Touch 2.3:微调器字段增加0.1

Extjs Sencha Touch 2.3:微调器字段增加0.1,extjs,sencha-touch-2,Extjs,Sencha Touch 2,我正在与Sencha Touch 2合作,并尝试使用微调器字段。这是我的代码段 { xtype: 'spinnerfield', name: 'transfer_qty', itemId: 'transfer_qty', locales: { label: 'stock_transfer.

我正在与Sencha Touch 2合作,并尝试使用微调器字段。这是我的代码段

 {
                    xtype: 'spinnerfield',
                    name: 'transfer_qty',
                    itemId: 'transfer_qty',
                    locales: {
                        label: 'stock_transfer.item_qty'
                    },
                    minValue: 0,
                    increment: 1,
                    //placeHolder: 'Please enter valid quantity',
                    required: true,
                    readOnly: false
                    //cycle: true
                }
我试图将该字段增加1,但是它增加了0.1

Sencha Touch版本是2.3

有人知道这是怎么回事吗


谢谢

通过将stepValue属性设置为1而不是使用increment属性来解决问题

{
                    xtype: 'spinnerfield',
                    name: 'transfer_qty',
                    itemId: 'transfer_qty',
                    locales: {
                        label: 'stock_transfer.item_qty'
                    },
                    minValue: 0,
                    stepValue: 1,
                    required: true,
                    readOnly: false
                }