examples/bootstrap/Dashboard.Sidebar2.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 24 Nov 2016 06:30:10 +0000 (14:30 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 24 Nov 2016 06:30:10 +0000 (14:30 +0800)
examples/bootstrap/Dashboard.Sidebar2.js

examples/bootstrap/Dashboard.Sidebar2.bjs
examples/bootstrap/Dashboard.Sidebar2.js

index 91e28a8..10795c1 100644 (file)
@@ -47,6 +47,9 @@
              "String html" : "test"
             },
             {
+             "listeners" : {
+              "click" : "function (_self, e)\n{\n    Roo.log(\"last one clicked\");\n}"
+             },
              "xtype" : "MenuItem",
              "$ xns" : "Roo.bootstrap",
              "String html" : "test"
index 898b5f0..a92eb8d 100644 (file)
@@ -66,6 +66,12 @@ Dashboard.Sidebar2 = new Roo.XComponent({
            {
             xtype : 'MenuItem',
             html : _this._strings['098f6bcd4621d373cade4e832627b4f6'] /* test */,
+            listeners : {
+             click : function (_self, e)
+              {
+                  Roo.log("last one clicked");
+              }
+            },
             xns : Roo.bootstrap,
             '|xns' : 'Roo.bootstrap'
            }