Properties Methods Events Config Options Direct Link
Filter
  DateFilter

Class Ext.ux.grid.filter.DateFilter

Package:Ext.ux.grid.filter
Defined In:DateFilter.js
Class:DateFilter
Extends:Filter
Filter by a configurable Ext.menu.DateMenu

Example Usage:

var filters = new Ext.ux.grid.GridFilters({
    ...
    filters: [{
        // required configs
        type: 'date',
        dataIndex: 'dateAdded',
        
        // optional configs
        dateFormat: 'm/d/Y',  // default
        beforeText: 'Before', // default
        afterText: 'After',   // default
        onText: 'On',         // default
        pickerOpts: {
            // any DateMenu configs
        },

        active: true // default is false
    }]
});

Config Options

Config OptionsDefined By
 active : Boolean
Indicates the initial status of the filter (defaults to false).
Filter
 afterText : String
Defaults to 'After'.
DateFilter
 afterText : String
Defaults to 'After'.
DateFilter
 beforeText : String
Defaults to 'Before'.
DateFilter
 beforeText : String
Defaults to 'Before'.
DateFilter
 compareMap : Object
Map for assigning the comparison values used in serialization.
DateFilter
 compareMap : Object
Map for assigning the comparison values used in serialization.
DateFilter
 dateFormat : String
The date format to return when using getValue. Defaults to 'm/d/Y'.
DateFilter
 dateFormat : String
The date format to return when using getValue. Defaults to 'm/d/Y'.
DateFilter
 maxDate : Date
Allowable date as passed to the Ext.DatePicker Defaults to undefined.
DateFilter
 maxDate : Date
Allowable date as passed to the Ext.DatePicker Defaults to undefined.
DateFilter
 menuItemCfgs : Object
Default configuration options for each menu item
DateFilter
 menuItemCfgs : Object
Default configuration options for each menu item
DateFilter
 menuItems : Array
The items to be shown in this menu Defaults to:
menuItems : ['before', 'after', '-', 'on'],
DateFilter
 menuItems : Array
The items to be shown in this menu Defaults to:
menuItems : ['before', 'after', '-', 'on'],
DateFilter
 minDate : Date
Allowable date as passed to the Ext.DatePicker Defaults to undefined.
DateFilter
 minDate : Date
Allowable date as passed to the Ext.DatePicker Defaults to undefined.
DateFilter
 onText : String
Defaults to 'On'.
DateFilter
 onText : String
Defaults to 'On'.
DateFilter
 pickerOpts : Object
Configuration options for the date picker associated with each field.
DateFilter
 pickerOpts : Object
Configuration options for the date picker associated with each field.
DateFilter

Public Properties

PropertyDefined By
 active : Boolean
True if this filter is active. Use setActive() to alter after configuration.
Filter
 menu : Ext.menu.Menu
The filter configuration menu that will be installed into the filter submenu of a column menu.
Filter

Public Methods

MethodDefined By

Public Events

EventDefined By