Sha256: 60a3b1d57968a9f90d5c004f13c0faf110f102fe2f796fdd7cdceede0ceb4b84
Contents?: true
Size: 507 Bytes
Versions: 7
Compression:
Stored size: 507 Bytes
Contents
module MotionPrime class SubmitFieldSection < BaseFieldSection element :submit, type: :button do {title: options[:title]}.merge(options[:button] || {}) end element :error_message, type: :error_message, text: proc { all_errors.join("\n") if observing_errors? } after_render :bind_submit def bind_submit view(:submit).on :touch do form.send(options[:action]) if options[:action] end end def events_off view(:submit).off :touch end end end
Version data entries
7 entries across 7 versions & 1 rubygems