Browse Source

add requires

zhuth 6 years ago
parent
commit
da447530b6
1 changed files with 4 additions and 20 deletions
  1. 4 20
      app/view/grid/expander/Panel.js

+ 4 - 20
app/view/grid/expander/Panel.js

@@ -15,6 +15,10 @@ Ext.define('uas.view.grid.expander.Panel', {
     extend: 'Ext.grid.Panel',
     xtype: 'grid-expander-panel',
 
+    requires: [
+        'Ext.grid.plugin.RowExpander'
+    ],
+
     bind: '{companies}',
     viewModel: {
         stores: {
@@ -24,26 +28,6 @@ Ext.define('uas.view.grid.expander.Panel', {
             }
         }
     },
-    profiles: {
-        classic: {
-            width: 600,
-            pricechangeWidth: 100,
-            percentChangeColumnWidth: 100,
-            lastUpdatedColumnWidth: 100
-        },
-        neptune: {
-            width: 600,
-            pricechangeWidth: 100,
-            percentChangeColumnWidth: 100,
-            lastUpdatedColumnWidth: 100
-        },
-        graphite: {
-            width: 750,
-            pricechangeWidth: 110,
-            percentChangeColumnWidth: 120,
-            lastUpdatedColumnWidth: 150          
-        }
-    },
     columns: [
         { text: "Company", flex: 1, dataIndex: 'name'},
         { text: "Price", formatter: 'usMoney', dataIndex: 'price', width: 100},