Sha256: 6c2aa5fb5e6c58d80d925b426a8c90af4d2ab037e116cee4151e78e94bee8bc4

Contents?: true

Size: 428 Bytes

Versions: 2

Compression:

Stored size: 428 Bytes

Contents

module MotionPrime
  class TextFieldSection < BaseFieldSection
    element :label, type: :label do
      options[:label] || {}
    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

2 entries across 2 versions & 1 rubygems

Version Path
motion-prime-0.7.2 motion-prime/sections/form/text_field_section.rb
motion-prime-0.7.1 motion-prime/sections/form/text_field_section.rb