Sha256: aeeebc5920023953fdd4462fea846c4d3e5113ddd0eb7acda374cc0df21c9818

Contents?: true

Size: 387 Bytes

Versions: 15

Compression:

Stored size: 387 Bytes

Contents

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

    def input(wrapper_options)
      UiBibz::Ui::Core::Forms::Texts::TextField.new(input_attribute_name, options, input_html_options).render
    end

    def input_attribute_name
      "#{ @builder.object.class.name.gsub('::', "").underscore }[#{ attribute_name }]"
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ui_bibz-2.1.5 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-2.1.4 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-2.1.3 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-2.1.2 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-2.1.1 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-2.0.10 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-2.0.9 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-2.1.0 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-2.0.8 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-2.0.7 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-2.0.5 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-2.0.4 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-2.0.3 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-2.0.2 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb
ui_bibz-2.0.1 lib/ui_bibz/inputs/ui_bibz_inputs/ui_text_field_input.rb