Class: Wice::ViewColumnBoolean

Inherits:
ViewColumnCustomDropdown show all
Includes:
ActionView::Helpers::FormOptionsHelper
Defined in:
lib/view_columns.rb

Overview

:nodoc:

Constant Summary

Constants inherited from ViewColumn

Wice::ViewColumn::FIELDS

Instance Attribute Summary collapse

Attributes inherited from ViewColumnCustomDropdown

#custom_filter, #filter_all_label

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 ViewColumnCustomDropdown

#has_auto_reloading_select?, #yield_declaration_of_column_filter

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_input?, #has_auto_reloading_select?, #initialize, #render_filter, #yield_declaration_of_column_filter, #yield_javascript

Constructor Details

This class inherits a constructor from Wice::ViewColumn

Instance Attribute Details

#boolean_filter_false_labelObject

Returns the value of attribute boolean_filter_false_label.



278
279
280
# File 'lib/view_columns.rb', line 278

def boolean_filter_false_label
  @boolean_filter_false_label
end

#boolean_filter_true_labelObject

Returns the value of attribute boolean_filter_true_label.



278
279
280
# File 'lib/view_columns.rb', line 278

def boolean_filter_true_label
  @boolean_filter_true_label
end

Instance Method Details

#render_filter_internal(params) ⇒ Object

:nodoc:



280
281
282
283
284
285
286
# File 'lib/view_columns.rb', line 280

def render_filter_internal(params) #:nodoc:
  @custom_filter = {@filter_all_label => nil,
                    @boolean_filter_true_label  => 't',
                    @boolean_filter_false_label => 'f' }
  @turn_off_select_toggling = true
  super(params)
end