Sha256: 356e3edb0633235a7b5cac92feac9b8f3c485f1d1d62cf9485595107cd907e0f

Contents?: true

Size: 388 Bytes

Versions: 10

Compression:

Stored size: 388 Bytes

Contents

module MotionPrime
  class TextFieldSection < BaseFieldSection
    element :label, type: :label do
      options[:label] || {}
    end
    element :input, type: :text_view do
      {editable: true}.merge(options[:input] || {})
    end

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

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
motion-prime-0.4.5 motion-prime/sections/form/text_field_section.rb
motion-prime-0.4.4 motion-prime/sections/form/text_field_section.rb
motion-prime-0.4.3 motion-prime/sections/form/text_field_section.rb
motion-prime-0.4.2 motion-prime/sections/form/text_field_section.rb
motion-prime-0.4.1 motion-prime/sections/form/text_field_section.rb
motion-prime-0.4.0 motion-prime/sections/form/text_field_section.rb
motion-prime-0.3.3 motion-prime/sections/form/text_field_section.rb
motion-prime-0.3.2 motion-prime/sections/form/text_field_section.rb
motion-prime-0.3.1 motion-prime/sections/form/text_field_section.rb
motion-prime-0.3.0 motion-prime/sections/form/text_field_section.rb