Sha256: 8821361ab24be3100c600d8a376ac134a6196e7274bb2b0468dd3e242b818e23

Contents?: true

Size: 428 Bytes

Versions: 11

Compression:

Stored size: 428 Bytes

Contents

module MotionPrime
  class TextFieldSection < BaseFieldSection
    element :label, type: :label do
      default_label_options
    end
    element :input, type: :text_view, delegate: proc { form.table_delegate } 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

11 entries across 11 versions & 1 rubygems

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