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

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

Methods included from ActionView::Helpers::TagHelper

#tag_options

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


293
294
295
# File 'lib/view_columns.rb', line 293

def boolean_filter_false_label
  @boolean_filter_false_label
end

#boolean_filter_true_labelObject

Returns the value of attribute boolean_filter_true_label


293
294
295
# File 'lib/view_columns.rb', line 293

def boolean_filter_true_label
  @boolean_filter_true_label
end

Instance Method Details

#render_filter_internal(params) ⇒ Object

:nodoc:


295
296
297
298
299
300
301
# File 'lib/view_columns.rb', line 295

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