Sha256: 092fab514e57268b169a19d086d51f55b7195179dbfb6298b6c5ef01cf0dc383
Contents?: true
Size: 448 Bytes
Versions: 2
Compression:
Stored size: 448 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 end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
motion-prime-0.7.2 | motion-prime/sections/form/submit_field_section.rb |
motion-prime-0.7.1 | motion-prime/sections/form/submit_field_section.rb |