Sha256: 09e7cccde689548d7bca6dc032474771b07fa0dfedd59a88a6e0fd10664fb584

Contents?: true

Size: 304 Bytes

Versions: 72

Compression:

Stored size: 304 Bytes

Contents

class DateRangePickerInput < DatePickerInput
  def data_attributes
    super.reverse_merge!(
      range_picker: range_picker?,
      start: self.options[:start],
      stop: self.options[:stop]
    )
  end

  def range_picker?
    self.options[:start].present? || self.options[:stop].present?
  end
end

Version data entries

72 entries across 72 versions & 1 rubygems

Version Path
udongo-6.3.1 app/inputs/date_range_picker_input.rb
udongo-6.3.0 app/inputs/date_range_picker_input.rb
udongo-6.2.1 app/inputs/date_range_picker_input.rb
udongo-6.2.0 app/inputs/date_range_picker_input.rb
udongo-6.1.0 app/inputs/date_range_picker_input.rb
udongo-6.0.0 app/inputs/date_range_picker_input.rb
udongo-5.9.0 app/inputs/date_range_picker_input.rb
udongo-5.8.0 app/inputs/date_range_picker_input.rb
udongo-5.7.0 app/inputs/date_range_picker_input.rb
udongo-5.6.0 app/inputs/date_range_picker_input.rb
udongo-5.5.0 app/inputs/date_range_picker_input.rb
udongo-5.4.0 app/inputs/date_range_picker_input.rb
udongo-5.3.1 app/inputs/date_range_picker_input.rb
udongo-5.3.0 app/inputs/date_range_picker_input.rb
udongo-5.2.0 app/inputs/date_range_picker_input.rb
udongo-5.1.0 app/inputs/date_range_picker_input.rb
udongo-5.0.2 app/inputs/date_range_picker_input.rb
udongo-5.0.1 app/inputs/date_range_picker_input.rb
udongo-5.0.0 app/inputs/date_range_picker_input.rb
udongo-4.0.0 app/inputs/date_range_picker_input.rb