X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/2e847cf21b8ab9d15fa167b315ca5b2fa92638fc..6a7e4474cba9d8be4b2ec445e10f1691f7277c50:/examples/ux/gridfilters/filter/BooleanFilter.js diff --git a/examples/ux/gridfilters/filter/BooleanFilter.js b/examples/ux/gridfilters/filter/BooleanFilter.js index a3f11eb7..ae8982d6 100644 --- a/examples/ux/gridfilters/filter/BooleanFilter.js +++ b/examples/ux/gridfilters/filter/BooleanFilter.js @@ -1,103 +1,103 @@ /*! - * Ext JS Library 3.1.1 - * Copyright(c) 2006-2010 Ext JS, LLC + * Ext JS Library 3.2.0 + * Copyright(c) 2006-2010 Ext JS, Inc. * licensing@extjs.com * http://www.extjs.com/license */ -/** - * @class Ext.ux.grid.filter.BooleanFilter - * @extends Ext.ux.grid.filter.Filter - * Boolean filters use unique radio group IDs (so you can have more than one!) - *

Example Usage:

- *
    
-var filters = new Ext.ux.grid.GridFilters({
-    ...
-    filters: [{
-        // required configs
-        type: 'boolean',
-        dataIndex: 'visible'
-
-        // optional configs
-        defaultValue: null, // leave unselected (false selected by default)
-        yesText: 'Yes',     // default
-        noText: 'No'        // default
-    }]
-});
- * 
- */ -Ext.ux.grid.filter.BooleanFilter = Ext.extend(Ext.ux.grid.filter.Filter, { - /** - * @cfg {Boolean} defaultValue - * Set this to null if you do not want either option to be checked by default. Defaults to false. - */ - defaultValue : false, - /** - * @cfg {String} yesText - * Defaults to 'Yes'. - */ - yesText : 'Yes', - /** - * @cfg {String} noText - * Defaults to 'No'. - */ - noText : 'No', - - /** - * @private - * Template method that is to initialize the filter and install required menu items. - */ - init : function (config) { - var gId = Ext.id(); - this.options = [ - new Ext.menu.CheckItem({text: this.yesText, group: gId, checked: this.defaultValue === true}), - new Ext.menu.CheckItem({text: this.noText, group: gId, checked: this.defaultValue === false})]; - - this.menu.add(this.options[0], this.options[1]); - - for(var i=0; iExample Usage:

+ *
    
+var filters = new Ext.ux.grid.GridFilters({
+    ...
+    filters: [{
+        // required configs
+        type: 'boolean',
+        dataIndex: 'visible'
+
+        // optional configs
+        defaultValue: null, // leave unselected (false selected by default)
+        yesText: 'Yes',     // default
+        noText: 'No'        // default
+    }]
+});
+ * 
+ */ +Ext.ux.grid.filter.BooleanFilter = Ext.extend(Ext.ux.grid.filter.Filter, { + /** + * @cfg {Boolean} defaultValue + * Set this to null if you do not want either option to be checked by default. Defaults to false. + */ + defaultValue : false, + /** + * @cfg {String} yesText + * Defaults to 'Yes'. + */ + yesText : 'Yes', + /** + * @cfg {String} noText + * Defaults to 'No'. + */ + noText : 'No', + + /** + * @private + * Template method that is to initialize the filter and install required menu items. + */ + init : function (config) { + var gId = Ext.id(); + this.options = [ + new Ext.menu.CheckItem({text: this.yesText, group: gId, checked: this.defaultValue === true}), + new Ext.menu.CheckItem({text: this.noText, group: gId, checked: this.defaultValue === false})]; + + this.menu.add(this.options[0], this.options[1]); + + for(var i=0; i