DependTree/Window.bjs
authorAlan Knowles <alan@akbkhome.com>
Thu, 2 Dec 2010 11:22:53 +0000 (19:22 +0800)
committerAlan Knowles <alan@akbkhome.com>
Thu, 2 Dec 2010 11:22:53 +0000 (19:22 +0800)
DependTree/Window.bjs

index 126bc23..ef55fce 100644 (file)
                                                             "listeners": {}
                                                         }
                                                     ]
+                                                },
+                                                {
+                                                    "title": "Active",
+                                                    "xtype": "TreeViewColumn",
+                                                    "|xns": "Gtk",
+                                                    "pack": false,
+                                                    "items": [
+                                                        {
+                                                            "listeners": {
+                                                                "toggled": "function (self, path) {\n    print(\"TOGGLE\");\n    // this.list\n\n\n     \n    var old = this.list.getValue(path, 1);\n   // print(JSON.stringify(old));\n    this.list.setValue(path, 1, old ? false : true)\n    \n    \n    \n    \n}"
+                                                            },
+                                                            "activatable": true,
+                                                            "xtype": "CellRendererToggle",
+                                                            "|xns": "Gtk"
+                                                        }
+                                                    ]
                                                 }
                                             ]
                                         }