Class: Wice::ViewColumnInteger
- Inherits:
-
ViewColumn
- Object
- ViewColumn
- Wice::ViewColumnInteger
- Defined in:
- lib/view_columns.rb
Overview
:nodoc:
Direct Known Subclasses
Constant Summary
Constants inherited from ViewColumn
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
-
#has_auto_reloading_input? ⇒ Boolean
:nodoc:.
-
#render_filter_internal(params) ⇒ Object
:nodoc:.
-
#yield_declaration_of_column_filter ⇒ Object
:nodoc:.
Methods inherited from ViewColumn
#auto_reloading_input_with_negation_checkbox?, #capable_of_hosting_filter_related_icons?, #config, #controller, #detachness, #filter_shown?, #filter_shown_in_main_table?, #form_parameter_name_id_and_query, #has_auto_reloading_calendar?, #has_auto_reloading_select?, #initialize, #render_filter, #yield_javascript
Constructor Details
This class inherits a constructor from Wice::ViewColumn
Instance Method Details
#has_auto_reloading_input? ⇒ Boolean
:nodoc:
207 208 209 |
# File 'lib/view_columns.rb', line 207 def has_auto_reloading_input? #:nodoc: auto_reload end |
#render_filter_internal(params) ⇒ Object
:nodoc:
185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 |
# File 'lib/view_columns.rb', line 185 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} opts2 = {:size => 3, :id => @dom_id2} 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_filter ⇒ Object
:nodoc:
202 203 204 205 |
# File 'lib/view_columns.rb', line 202 def yield_declaration_of_column_filter #:nodoc: %$templates : ['#{@query}', '#{@query2}'], ids : ['#{@dom_id}', '#{@dom_id2}'] $ end |