Pman.Tab.XtuplePurchasesVendors.js
"|xns": "Roo.Toolbar",
"xtype": "Separator"
},
+ {
+ "listeners": {
+ "toggle": "function (_self, pressed)\n{\n\n this.setText(pressed ? \"Hide Inactive\" : \"Show Inactive\");\n (function() { _this.grid.footer.onClick('first'); }).defer(100);\n}",
+ "render": "function (_self)\n{\n _this.active = _self;\n}"
+ },
+ "enableToggle": true,
+ "text": "Show Inactive",
+ "xtype": "Button",
+ "|xns": "Roo.Toolbar"
+ },
{
"|xns": "Roo.Toolbar",
"xtype": "Fill"
xtype: 'Separator',
xns: Roo.Toolbar
},
+ {
+ xtype: 'Button',
+ xns: Roo.Toolbar,
+ listeners : {
+ toggle : function (_self, pressed)
+ {
+
+ this.setText(pressed ? "Hide Inactive" : "Show Inactive");
+ (function() { _this.grid.footer.onClick('first'); }).defer(100);
+ },
+ render : function (_self)
+ {
+ _this.active = _self;
+ }
+ },
+ enableToggle : true,
+ text : "Show Inactive"
+ },
{
xtype: 'Fill',
xns: Roo.Toolbar