FormPanel.js 757 B

1234567891011121314151617181920212223242526272829303132
  1. Ext.define('saas.view.test.myform.FormPanel',{
  2. extend: 'saas.view.core.form.FormPanel',
  3. xtype: 'test-myform-formpanel',
  4. controller: 'test-myform-formpanel',
  5. viewModel: {
  6. type: 'test-myform-formpanel'
  7. },
  8. defaultItems: [{
  9. xtype: 'detailGridField',
  10. store: Ext.create('Ext.data.Store', {
  11. fields: ['col1', 'col2'],
  12. data: []
  13. }),
  14. columns: [{
  15. text : "col1",
  16. editor : {
  17. xtype : "textfield"
  18. },
  19. dataIndex : "col1",
  20. width : 120.0
  21. }, {
  22. text : "col2",
  23. editor : {
  24. xtype : "textfield"
  25. },
  26. dataIndex : "col2"
  27. }]
  28. }]
  29. });