Reader/Feed.bjs
authorAlan Knowles <alan@roojs.com>
Thu, 12 May 2016 06:56:51 +0000 (14:56 +0800)
committerAlan Knowles <alan@roojs.com>
Thu, 12 May 2016 06:56:51 +0000 (14:56 +0800)
Reader/Feed.js
Reader/templates/Feed.html

Reader/Feed.bjs
Reader/Feed.js

index 39172ac..0f08bce 100644 (file)
@@ -21,6 +21,9 @@
    "$ xns" : "Roo.bootstrap",
    "items" : [
     {
+     "listeners" : {
+      "click" : "function (_self, e)\n{\n  if (this.state == 'READING') { \n    // flip to index...\n    }\n}"
+     },
      "String tag" : "div",
      "xtype" : "Element",
      "$ xns" : "Roo.bootstrap",
index 04ddcf6..6c27d3f 100644 (file)
@@ -37,7 +37,15 @@ Feed = new Roo.XComponent({
      tag : 'div',
      xns : Roo.bootstrap,
      '|xns' : 'Roo.bootstrap',
-     xtype : 'Element'
+     xtype : 'Element',
+     listeners : {
+      click : function (_self, e)
+       {
+         if (this.state == 'READING') { 
+           // flip to index...
+           }
+       }
+     }
     },
     {
      inverse : true,