Sha256: 20ab7a520e24150e462a558c27ffcc64a348dea3a6c71ef5994ef224a0707ab1
Contents?: true
Size: 542 Bytes
Versions: 11
Compression:
Stored size: 542 Bytes
Contents
# frozen_string_literal: true module SimpleForm module Inputs class NumericInput < Base enable :placeholder, :min_max def input(wrapper_options = nil) input_html_classes.unshift("numeric") if html5? input_html_options[:type] ||= "number" input_html_options[:step] ||= integer? ? 1 : "any" end merged_input_options = merge_wrapper_options(input_html_options, wrapper_options) @builder.text_field(attribute_name, merged_input_options) end end end end
Version data entries
11 entries across 11 versions & 1 rubygems