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-3.0.0 app/inputs/date_range_picker_input.rb
udongo-2.0.4 app/inputs/date_range_picker_input.rb
udongo-2.0.3 app/inputs/date_range_picker_input.rb
udongo-2.0.2 app/inputs/date_range_picker_input.rb
udongo-2.0.1 app/inputs/date_range_picker_input.rb
udongo-2.0.0 app/inputs/date_range_picker_input.rb
udongo-1.0.4 app/inputs/date_range_picker_input.rb
udongo-1.0.3 app/inputs/date_range_picker_input.rb
udongo-1.0.2 app/inputs/date_range_picker_input.rb
udongo-1.0.1 app/inputs/date_range_picker_input.rb
udongo-1.0.0 app/inputs/date_range_picker_input.rb
udongo-0.1.0 app/inputs/date_range_picker_input.rb