Sha256: 402b60ea63d9b006f99cba690ede0dc053f9765c5a443aa31a832cb4b0e6b8b2
Contents?: true
Size: 510 Bytes
Versions: 8
Compression:
Stored size: 510 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 def value view(:input).text end def input? true end end end
Version data entries
8 entries across 8 versions & 1 rubygems