Sha256: 910b925fac1448cf0c8894722306362499dbb44f673950beba0fdbb2f27e72f9
Contents?: true
Size: 522 Bytes
Versions: 8
Compression:
Stored size: 522 Bytes
Contents
module MotionPrime class PasswordFieldSection < BaseFieldSection element :label, type: :label do default_label_options end element :input, type: :text_field, delegate: proc { form.table_delegate } do {secure_text_entry: true}.merge(options[:input] || {}) end element :error_message, type: :error_message, text: proc { all_errors.join("\n") if observing_errors? } 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