Sha256: 9d074e66f75e925cc26838ae6311f93174e33a1dca331fa4a59c1895eed3b972
Contents?: true
Size: 461 Bytes
Versions: 18
Compression:
Stored size: 461 Bytes
Contents
module MotionPrime class SubmitFieldSection < BaseFieldSection element :button, type: :button do {title: options[:name].to_s.titleize}.merge(options[:button] || {}) end element :error_message, type: :error_message, text: proc { all_errors.join("\n") if observing_errors? } after_render :bind_button def bind_button view(:button).on :touch do form.send(options[:action]) if options[:action] end end end end
Version data entries
18 entries across 18 versions & 1 rubygems