Sha256: bc2f9bc28fd8bfeb7f0fff2dbb1747b8a59ba1a7a32cd4f86ec2b539a69fdf07

Contents?: true

Size: 407 Bytes

Versions: 11

Compression:

Stored size: 407 Bytes

Contents

module MotionPrime
  class StringFieldSection < BaseFieldSection
    element :label, type: :label do
      default_label_options
    end

    element :input, type: :text_field, delegate: proc { form.table_delegate } do
      options[:input] || {}
    end

    element :error_message, type: :error_message, text: proc { all_errors.join("\n") if observing_errors? }
    after_render :bind_text_input
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
motion-prime-0.8.10 motion-prime/sections/form/string_field_section.rb
motion-prime-0.8.9 motion-prime/sections/form/string_field_section.rb
motion-prime-0.8.8 motion-prime/sections/form/string_field_section.rb
motion-prime-0.8.7 motion-prime/sections/form/string_field_section.rb
motion-prime-0.8.6 motion-prime/sections/form/string_field_section.rb
motion-prime-0.8.5 motion-prime/sections/form/string_field_section.rb
motion-prime-0.8.4 motion-prime/sections/form/string_field_section.rb
motion-prime-0.8.3 motion-prime/sections/form/string_field_section.rb
motion-prime-0.8.2 motion-prime/sections/form/string_field_section.rb
motion-prime-0.8.1 motion-prime/sections/form/string_field_section.rb
motion-prime-0.8.0 motion-prime/sections/form/string_field_section.rb