2011-09-03 10:25:53 -04:00
|
|
|
module SimpleForm
|
|
|
|
module Inputs
|
|
|
|
class RangeInput < NumericInput
|
|
|
|
def input
|
2011-12-04 10:15:27 -05:00
|
|
|
if html5?
|
2011-09-03 10:25:53 -04:00
|
|
|
input_html_options[:type] ||= "range"
|
|
|
|
input_html_options[:step] ||= 1
|
|
|
|
end
|
|
|
|
|
|
|
|
super
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|