Class: UiBibzInputs::UiTextFieldInput

Inherits:
StringInput show all
Includes:
UiBibz::Ui::Core::Forms::Texts
Defined in:
lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb

Instance Method Summary collapse

Methods inherited from StringInput

#options

Methods inherited from BaseInput

#options

Instance Method Details

#input(wrapper_options) ⇒ Object



7
8
9
10
11
12
13
14
15
# File 'lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb', line 7

def input(wrapper_options)
  unless string?
    input_html_classes.unshift('string')
    # input_html_options[:type] ||= input_type if html5?
  end

  merged_input_options = merge_wrapper_options(input_html_options, wrapper_options)
  UiBibz::Ui::Core::Forms::Texts::TextField.new(input_attribute_name, options, merged_input_options).render
end