Sha256: db4b46feb1c576d5f81306d078dd178306256024ef85f6584fec97e0d6acc079

Contents?: true

Size: 519 Bytes

Versions: 10

Compression:

Stored size: 519 Bytes

Contents

# frozen_string_literal: true

module UiBibzInputs
  class UiTextFieldInput < StringInput
    include UiBibz::Ui::Core::Forms::Texts

    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
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
ui_bibz-3.0.0.alpha10 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-3.0.0.alpha9 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-3.0.0.alpha8 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-3.0.0.alpha6 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-3.0.0.alpha5 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-3.0.0.alpha3 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-3.0.0.alpha2 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-2.5.6 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-2.5.5 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-2.5.3 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb