Reader/Feed.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 24 Dec 2015 04:39:57 +0000 (12:39 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 24 Dec 2015 04:39:57 +0000 (12:39 +0800)
Reader/Feed.js
Reader/templates/Feed.html

Reader/Feed.bjs
Reader/Feed.js

index 17ac33e..7705ccc 100644 (file)
@@ -57,7 +57,8 @@
     },
     {
      "listeners" : {
-      "render" : "function (_self)\n{\n    _this.table = this;\n    this.store.load({});\n}"
+      "render" : "function (_self)\n{\n    _this.table = this;\n    this.store.load({});\n}",
+      "rowclick" : "function (_self, el, rowIndex, e)\n{\n    var rec = this.store.getAt(rowIndex);\n    Roo.log(rec);\n}"
      },
      "boolean striped" : true,
      "boolean hover" : true,
index 038d135..a6b39e4 100644 (file)
@@ -86,6 +86,11 @@ Feed = new Roo.XComponent({
        {
            _this.table = this;
            this.store.load({});
+       },
+      rowclick : function (_self, el, rowIndex, e)
+       {
+           var rec = this.store.getAt(rowIndex);
+           Roo.log(rec);
        }
      },
      store : {