Class: Wice::Columns::ViewColumnHtml5Datepicker

Inherits:
ViewColumn show all
Includes:
CommonDateDatetimeMixin, CommonJsDateDatetimeMixin
Defined in:
lib/wice/columns/column_html5_datepicker.rb

Overview

:nodoc:

Constant Summary

Constants inherited from ViewColumn

Wice::Columns::ViewColumn::FIELDS

Instance Attribute Summary

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 included from CommonJsDateDatetimeMixin

#prepare

Methods included from CommonDateDatetimeMixin

#render_filter_internal, #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_input?, #has_auto_reloading_select?, #initialize, #render_filter, #render_filter_internal, #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 Method Details

#do_render(params) ⇒ Object

:nodoc:



8
9
10
11
12
13
14
15
# File 'lib/wice/columns/column_html5_datepicker.rb', line 8

def do_render(params) #:nodoc:
  css_class = 'form-control input-sm native-datepicker ' + (auto_reload ? 'auto-reload' : '')
  date_format = Wice::ConfigurationProvider.value_for(:DATE_FORMAT)
  '<div class="date-filter wg-html5-datepicker">' +
    date_field_tag(@name1, params[:fr].try(:strftime, date_format), class: css_class, id: @dom_id) + '<br/>' +
    date_field_tag(@name2, params[:to].try(:strftime, date_format), class: css_class, id: @dom_id2) +
    '</div>'
end

#has_auto_reloading_calendar?Boolean

:nodoc:

Returns:

  • (Boolean)


17
18
19
20
# File 'lib/wice/columns/column_html5_datepicker.rb', line 17

def has_auto_reloading_calendar? #:nodoc:
  # To be implemented
  false
end