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-7.9.0 app/inputs/date_range_picker_input.rb
udongo-7.8.1 app/inputs/date_range_picker_input.rb
udongo-7.8.0 app/inputs/date_range_picker_input.rb
udongo-7.7.2 app/inputs/date_range_picker_input.rb
udongo-7.7.1 app/inputs/date_range_picker_input.rb
udongo-7.7.0 app/inputs/date_range_picker_input.rb
udongo-7.6.2 app/inputs/date_range_picker_input.rb
udongo-7.6.1 app/inputs/date_range_picker_input.rb
udongo-7.6.0 app/inputs/date_range_picker_input.rb
udongo-7.5.1 app/inputs/date_range_picker_input.rb
udongo-7.5.0 app/inputs/date_range_picker_input.rb
udongo-7.4.2 app/inputs/date_range_picker_input.rb
udongo-7.4.1 app/inputs/date_range_picker_input.rb
udongo-7.4.0 app/inputs/date_range_picker_input.rb
udongo-7.3.5 app/inputs/date_range_picker_input.rb
udongo-7.3.4 app/inputs/date_range_picker_input.rb
udongo-7.3.3 app/inputs/date_range_picker_input.rb
udongo-7.3.2 app/inputs/date_range_picker_input.rb
udongo-7.3.1 app/inputs/date_range_picker_input.rb
udongo-7.2.1 app/inputs/date_range_picker_input.rb