Sha256: 234417b4f4399819cb42faf438c73bedf95f5b9f75077f0f2df66226c32e014a

Contents?: true

Size: 521 Bytes

Versions: 46

Compression:

Stored size: 521 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

46 entries across 46 versions & 1 rubygems

Version Path
ui_bibz-4.0.0.beta16 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-4.0.0.beta15 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-4.0.0.beta14 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-4.0.0.beta13 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-4.0.0.beta10 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-4.0.0.beta9 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-4.0.0.beta8 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-4.0.0.beta7 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-4.0.0.beta6 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-4.0.0.beta4 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-4.0.0.beta3 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-3.0.13 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-3.0.12 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-3.0.11 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-3.0.10 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-3.0.9 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-3.0.8 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-3.0.7 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-3.0.6 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-3.0.5 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb