Class: Wice::Columns::ViewColumnBoolean

Inherits:
ViewColumnCustomDropdown show all
Includes:
ActionView::Helpers::FormOptionsHelper
Defined in:
lib/wice/columns/column_boolean.rb

Overview

:nodoc:

Constant Summary

Constants inherited from ViewColumn

Wice::Columns::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, #custom_filter, #filter_control_options, #grid, #main_table, #table_name

Instance Method Summary collapse

Methods inherited from ViewColumnCustomDropdown

#has_auto_reloading_select?, #yield_declaration_of_column_filter

Methods inherited from ViewColumn

#add_css_class, #attribute_name_fully_qualified_for_all_but_main_table_columns, #auto_reloading_input_with_negation_checkbox?, #capable_of_hosting_filter_related_icons?, #config, #controller, #css_class, #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, #yield_declaration_of_column_filter

Methods included from ActionView::Helpers::TagHelper

#public_tag_options

Constructor Details

This class inherits a constructor from Wice::Columns::ViewColumn

Instance Attribute Details

#boolean_filter_false_labelObject

Text for the false value



10
11
12
# File 'lib/wice/columns/column_boolean.rb', line 10

def boolean_filter_false_label
  @boolean_filter_false_label
end

#boolean_filter_true_labelObject

Text for the true value



7
8
9
# File 'lib/wice/columns/column_boolean.rb', line 7

def boolean_filter_true_label
  @boolean_filter_true_label
end

Instance Method Details

#render_filter_internal(params) ⇒ Object

:nodoc:



12
13
14
15
16
17
18
19
20
21
# File 'lib/wice/columns/column_boolean.rb', line 12

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