Sha256: 241dcbfdd703486d301c0759cd0a87efea0b81ccca2c54ab6b85b28d7506b8ec

Contents?: true

Size: 1.44 KB

Versions: 13

Compression:

Stored size: 1.44 KB

Contents

module Wice
  module Columns #:nodoc:
    class ViewColumnJqueryDatepicker < ViewColumn #:nodoc:

      include Wice::JsCalendarHelpers
      include Wice::Columns::CommonDateDatetimeMixin
      include Wice::Columns::CommonJsDateDatetimeMixin

      def do_render(params) #:nodoc:
        calendar_data_from = prepare_data_for_calendar(
          initial_date: params[:fr],
          title:        NlMessage['date_selector_tooltip_from'],
          name:         @name1,
          fire_event:   auto_reload,
          grid_name:    self.grid.name
        )

        calendar_data_to = prepare_data_for_calendar(
          initial_date: params[:to],
          title:        NlMessage['date_selector_tooltip_to'],
          name:         @name2,
          fire_event:   auto_reload,
          grid_name:    self.grid.name
        )

        calendar_data_from.the_other_datepicker_id_to   = calendar_data_to.dom_id
        calendar_data_to.the_other_datepicker_id_from   = calendar_data_from.dom_id

        html1 = date_calendar_jquery calendar_data_from

        html2 = date_calendar_jquery calendar_data_to

        %(<div class="date-filter wg-jquery-datepicker">#{html1}<br/>#{html2}</div>)
      end

      def has_auto_reloading_calendar? #:nodoc:
        auto_reload
      end

    end

    class ConditionsGeneratorColumnJqueryDatepicker < ConditionsGeneratorColumn  #:nodoc:

      include Wice::Columns::CommonJsDateDatetimeConditionsGeneratorMixin

    end
  end
end

Version data entries

13 entries across 13 versions & 2 rubygems

Version Path
wice_grid-6.1.3 lib/wice/columns/column_jquery_datepicker.rb
wice_grid-6.1.2 lib/wice/columns/column_jquery_datepicker.rb
wice_grid-6.1.1 lib/wice/columns/column_jquery_datepicker.rb
wice_grid-6.1.0 lib/wice/columns/column_jquery_datepicker.rb
pwice_grid-7.0.0 lib/wice/columns/column_jquery_datepicker.rb
pwice_grid-6.1.2 lib/wice/columns/column_jquery_datepicker.rb
pwice_grid-6.1.1 lib/wice/columns/column_jquery_datepicker.rb
pwice_grid-6.1.0 lib/wice/columns/column_jquery_datepicker.rb
pwice_grid-5.0.2 lib/wice/columns/column_jquery_datepicker.rb
pwice_grid-5.0.1 lib/wice/columns/column_jquery_datepicker.rb
pwice_grid-5.0.0 lib/wice/columns/column_jquery_datepicker.rb
wice_grid-4.1.0 lib/wice/columns/column_jquery_datepicker.rb
wice_grid-3.6.2 lib/wice/columns/column_jquery_datepicker.rb