Class: Wice::ViewColumnInteger

Inherits:
ViewColumn show all
Defined in:
lib/view_columns.rb

Overview

:nodoc:

Direct Known Subclasses

ViewColumnFloat

Constant Summary

Constants inherited from ViewColumn

Wice::ViewColumn::FIELDS

Instance Attribute Summary

Attributes inherited from ViewColumn

#cell_rendering_block, #contains_a_text_input, #css_class, #custom_filter, #grid, #main_table, #model_class, #table_name

Instance Method Summary collapse

Methods inherited from ViewColumn

#attribute_name_fully_qualified_for_all_but_main_table_columns, #auto_reloading_input_with_negation_checkbox?, #capable_of_hosting_filter_related_icons?, #detachness, #filter_shown?, #filter_shown_in_main_table?, #form_parameter_name_id_and_query, #fully_qualified_attribute_name, #has_auto_reloading_calendar?, #has_auto_reloading_select?, #initialize, #render_filter, #table_alias_or_table_name, #yield_javascript

Methods included from ActionView::Helpers::TagHelper

#tag_options

Constructor Details

This class inherits a constructor from Wice::ViewColumn

Instance Method Details

#has_auto_reloading_input?Boolean

:nodoc:

Returns:

  • (Boolean)

222
223
224
# File 'lib/view_columns.rb', line 222

def has_auto_reloading_input? #:nodoc:
  auto_reload
end

#render_filter_internal(params) ⇒ Object

:nodoc:


200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
# File 'lib/view_columns.rb', line 200

def render_filter_internal(params) #:nodoc:
  @contains_a_text_input = true

  @query, _, parameter_name, @dom_id = form_parameter_name_id_and_query(:fr => '')
  @query2, _, parameter_name2, @dom_id2 = form_parameter_name_id_and_query(:to => '')

  opts1 = {:size => 3, :id => @dom_id,  :class => 'range-start'}
  opts2 = {:size => 3, :id => @dom_id2, :class => 'range-end'}

  if auto_reload
    opts1[:class] += ' auto_reload'
    opts2[:class] += ' auto_reload'
  end

  text_field_tag(parameter_name,  params[:fr], opts1) + text_field_tag(parameter_name2, params[:to], opts2)
end

#yield_declaration_of_column_filterObject

:nodoc:


217
218
219
220
# File 'lib/view_columns.rb', line 217

def yield_declaration_of_column_filter #:nodoc:
  %$templates : ['#{@query}', '#{@query2}'],
      ids : ['#{@dom_id}', '#{@dom_id2}']  $
end