X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/examples/ux/grid/filter/ListFilter.js diff --git a/examples/ux/grid/filter/ListFilter.js b/examples/ux/grid/filter/ListFilter.js new file mode 100644 index 00000000..9a6bc6f1 --- /dev/null +++ b/examples/ux/grid/filter/ListFilter.js @@ -0,0 +1,177 @@ +/** + * @class Ext.ux.grid.filter.ListFilter + * @extends Ext.ux.grid.filter.Filter + *

List filters are able to be preloaded/backed by an Ext.data.Store to load + * their options the first time they are shown. ListFilter utilizes the + * {@link Ext.ux.grid.menu.ListMenu} component.

+ *

Although not shown here, this class accepts all configuration options + * for {@link Ext.ux.grid.menu.ListMenu}.

+ * + *

Example Usage:

+ *

+var filters = Ext.create('Ext.ux.grid.GridFilters', {
+    ...
+    filters: [{
+        type: 'list',
+        dataIndex: 'size',
+        phpMode: true,
+        // options will be used as data to implicitly creates an ArrayStore
+        options: ['extra small', 'small', 'medium', 'large', 'extra large']
+    }]
+});
+ * 
+ * + */ +Ext.define('Ext.ux.grid.filter.ListFilter', { + extend: 'Ext.ux.grid.filter.Filter', + alias: 'gridfilter.list', + + /** + * @cfg {Array} options + *

data to be used to implicitly create a data store + * to back this list when the data source is local. If the + * data for the list is remote, use the {@link #store} + * config instead.

+ *

Each item within the provided array may be in one of the + * following formats:

+ *