Class: IntlTelInput

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

Overview

SimpleForm input wrapper: intl tel.

Instance Method Summary collapse

Instance Method Details

#input(wrapper_options) ⇒ Object



4
5
6
7
8
9
# File 'app/inputs/intl_tel_input.rb', line 4

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