Class: IntlTelInput

Inherits:
SimpleForm::Inputs::StringInput
  • Object
show all
Defined in:
app/inputs/intl_tel_input.rb

Instance Method Summary collapse

Instance Method Details

#input(wrapper_options) ⇒ Object



2
3
4
5
6
7
# File 'app/inputs/intl_tel_input.rb', line 2

def input(wrapper_options)
  input_html_options[:class] << 'intl-tel-input'
  input_html_options[:type] = 'tel'
  input_html_options[:autocomplete] ||= 'tel'
  super
end