Pman.Tab.XtupleMetric.bjs
authorEdward <edward@roojs.com>
Tue, 5 Aug 2014 05:19:40 +0000 (13:19 +0800)
committerEdward <edward@roojs.com>
Tue, 5 Aug 2014 05:19:40 +0000 (13:19 +0800)
Pman.Tab.XtupleMetric.js

Pman.Tab.XtupleMetric.bjs
Pman.Tab.XtupleMetric.js

index 0204d10..be34ec8 100644 (file)
                         {
                             "|xns": "Roo",
                             "xtype": "Toolbar",
-                            "*prop": "toolbar"
+                            "*prop": "toolbar",
+                            "items": [
+                                {
+                                    "listeners": {
+                                        "specialkey": "function (_self, e)\n{\n  _this.grid.footer.onClick('first');\n}",
+                                        "render": "function (_self)\n{\n    _this.searchBox = _self;\n}"
+                                    },
+                                    "xtype": "TextField",
+                                    "|xns": "Roo.form"
+                                }
+                            ]
                         },
                         {
                             "*prop": "footer",
index d650bcb..5c8fd67 100644 (file)
@@ -110,7 +110,23 @@ Pman.Tab.XtupleMetric = new Roo.XComponent({
                 },
                 toolbar : {
                     xtype: 'Toolbar',
-                    xns: Roo
+                    xns: Roo,
+                    items : [
+                        {
+                            xtype: 'TextField',
+                            xns: Roo.form,
+                            listeners : {
+                                specialkey : function (_self, e)
+                                {
+                                  _this.grid.footer.onClick('first');
+                                },
+                                render : function (_self)
+                                {
+                                    _this.searchBox = _self;
+                                }
+                            }
+                        }
+                    ]
                 },
                 footer : {
                     xtype: 'PagingToolbar',