2016-03-08 23 views
0

我的ExtJs版本是6.0。爲什麼ExtJs 6.0 Spinnerfield無法正常工作..?

Ext.onReady(function(){ 
    Ext.create('Ext.Panel', { 
     width:300, 
     height:300, 
     items: 
     [ 
     { 
      xtype: 'spinnerfield', 
      fieldLabel: 'Test', 
      name: 'test', 
      minValue: 0, 
      allowDecimals: false, 
      incrementValue: 1, 
      accelerate: true 
     } 

     ], 
     renderTo: Ext.getBody() 
    }); 
}); 

我的版本不工作...!

例如:[http://cdn.sencha.com/ext/gpl/3.4.1.1/examples/spinner/spinner.html]

{ 
    xtype: 'spinnerfield', 
    fieldLabel: 'Test', 
    name: 'test', 
    minValue: 0, 
    allowDecimals: false, 
    incrementValue: 1, 
    accelerate: true 
} 

回答

相關問題