app/components/filtering_date_range_panel.rb
def configuration
    super.merge(
      :frame => true,
      :min_width => 500,
      :min_height => FILTERING_PANEL_DEFAULT_HEIGHT,
      :height => FILTERING_PANEL_DEFAULT_HEIGHT,
      :margin => '1 1 1 1',
      :fieldDefaults => {
        :msgTarget => 'side',
        :autoFitErrors => false
      },
      :layout => 'hbox',
      :items => [
        {
          :fieldLabel => I18n.t(:data_filtered_from, :scope => [:agex_action]),
          :labelWidth => 130,
          :margin => '1 6 0 0',
          :id   => FILTERING_DATE_START_CMP_ID,
          :name => FILTERING_DATE_START_CMP_ID,
          :xtype => 'datefield',
          :vtype => 'daterange',
          :endDateField => FILTERING_DATE_END_CMP_ID,
          :width => 230,
          :enable_key_events => true,
          :format => AGEX_FILTER_DATE_FORMAT_EXTJS,
          :value => super[FILTERING_DATE_START_CMP_SYM]
        },
        {
          :fieldLabel => I18n.t(:data_filtered_to, :scope => [:agex_action]),
          :labelWidth => 20,
          :margin => '1 2 0 6',
          :id   => FILTERING_DATE_END_CMP_ID,
          :name => FILTERING_DATE_END_CMP_ID,
          :xtype => 'datefield',
          :vtype => 'daterange',
          :startDateField => FILTERING_DATE_START_CMP_ID,
          :width => 120,
          :enable_key_events => true,
          :format => AGEX_FILTER_DATE_FORMAT_EXTJS,
          :value => super[FILTERING_DATE_END_CMP_SYM]
        }
      ]
    )
  end
# Name of the Netzke component that is assumed to contain the data grid that will use the
# session-stored filtering parameters.
# (FilteringDateRangePanel can use only one filtering destination, but will detect which one is defined)
#
Name of the Netzke component that is assumed to contain the data grid that will use the
session-stored filtering parameters.
(FilteringDateRangePanel can use only one filtering destination, but will detect which one is defined)
Name of the Netzke component that is assumed to contain the data grid that will use the session - stored filtering parameters . ( FilteringDateRangePanel can use only one filtering destination but will detect which one is defined )
def configuration
    super.merge(
      :frame => true,
      :min_width => 500,
      :min_height => FILTERING_PANEL_DEFAULT_HEIGHT,
      :height => FILTERING_PANEL_DEFAULT_HEIGHT,
      :margin => '1 1 1 1',
      :fieldDefaults => {
        :msgTarget => 'side',
        :autoFitErrors => false
      },
      :layout => 'hbox',
      :items => [
        {
          :fieldLabel => I18n.t(:data_filtered_from, :scope => [:agex_action]),
          :labelWidth => 130,
          :margin => '1 6 0 0',
          :id   => FILTERING_DATE_START_CMP_ID,
          :name => FILTERING_DATE_START_CMP_ID,
          :xtype => 'datefield',
          :vtype => 'daterange',
          :endDateField => FILTERING_DATE_END_CMP_ID,
          :width => 230,
          :enable_key_events => true,
          :format => AGEX_FILTER_DATE_FORMAT_EXTJS,
          :value => super[FILTERING_DATE_START_CMP_SYM]
        },
        {
          :fieldLabel => I18n.t(:data_filtered_to, :scope => [:agex_action]),
          :labelWidth => 20,
          :margin => '1 2 0 6',
          :id   => FILTERING_DATE_END_CMP_ID,
          :name => FILTERING_DATE_END_CMP_ID,
          :xtype => 'datefield',
          :vtype => 'daterange',
          :startDateField => FILTERING_DATE_START_CMP_ID,
          :width => 120,
          :enable_key_events => true,
          :format => AGEX_FILTER_DATE_FORMAT_EXTJS,
          :value => super[FILTERING_DATE_END_CMP_SYM]
        }
      ]
    )
  end
def configuration super . merge ( :frame => true , :min_width => 500 , :min_height => FILTERING_PANEL_DEFAULT_HEIGHT , :height => FILTERING_PANEL_DEFAULT_HEIGHT , :margin => '1 1 1 1' , :fieldDefaults => { :msgTarget => 'side' , :autoFitErrors => false } , :layout => 'hbox' , :items => [ { :fieldLabel => I18n . t ( :data_filtered_from , :scope => [ :agex_action ] ) , :labelWidth => 130 , :margin => '1 6 0 0' , :id => FILTERING_DATE_START_CMP_ID , :name => FILTERING_DATE_START_CMP_ID , :xtype => 'datefield' , :vtype => 'daterange' , :endDateField => FILTERING_DATE_END_CMP_ID , :width => 230 , :enable_key_events => true , :format => AGEX_FILTER_DATE_FORMAT_EXTJS , :value => super [ FILTERING_DATE_START_CMP_SYM ] } , { :fieldLabel => I18n . t ( :data_filtered_to , :scope => [ :agex_action ] ) , :labelWidth => 20 , :margin => '1 2 0 6' , :id => FILTERING_DATE_END_CMP_ID , :name => FILTERING_DATE_END_CMP_ID , :xtype => 'datefield' , :vtype => 'daterange' , :startDateField => FILTERING_DATE_START_CMP_ID , :width => 120 , :enable_key_events => true , :format => AGEX_FILTER_DATE_FORMAT_EXTJS , :value => super [ FILTERING_DATE_END_CMP_SYM ] } ] ) end
Name of the Netzke component that is assumed to contain the data grid that will use the
session-stored filtering parameters.
Name of the Netzke component that is assumed to contain the data grid that will use the session - stored filtering parameters .