Method: NumericRangeFilterInput#input_html_options

Defined in:
app/inputs/numeric_range_filter_input.rb

#input_html_options(input_name = gteq_input_name) ⇒ Object



17
18
19
20
21
22
23
24
25
26
# File 'app/inputs/numeric_range_filter_input.rb', line 17

def input_html_options(input_name = gteq_input_name)
  is_gt = (input_name == gteq_input_name)

  {
    type: "number",
    step: "any",
    value: @object.public_send(input_name),
    placeholder: is_gt ? "min" : "max"
  }
end