Sha256: b04efff63088bee87f40232962611444ac950a14b8141b51bc76ae87d7ffc67e

Contents?: true

Size: 309 Bytes

Versions: 10

Compression:

Stored size: 309 Bytes

Contents

module MotionPrime
  class SubmitFieldSection < BaseFieldSection
    element :submit, type: :button do
      {title: options[:title]}
    end
    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

10 entries across 10 versions & 1 rubygems

Version Path
motion-prime-0.4.5 motion-prime/sections/form/submit_field_section.rb
motion-prime-0.4.4 motion-prime/sections/form/submit_field_section.rb
motion-prime-0.4.3 motion-prime/sections/form/submit_field_section.rb
motion-prime-0.4.2 motion-prime/sections/form/submit_field_section.rb
motion-prime-0.4.1 motion-prime/sections/form/submit_field_section.rb
motion-prime-0.4.0 motion-prime/sections/form/submit_field_section.rb
motion-prime-0.3.3 motion-prime/sections/form/submit_field_section.rb
motion-prime-0.3.2 motion-prime/sections/form/submit_field_section.rb
motion-prime-0.3.1 motion-prime/sections/form/submit_field_section.rb
motion-prime-0.3.0 motion-prime/sections/form/submit_field_section.rb