motion-prime/sections/form.rb in motion-prime-0.8.0 vs motion-prime/sections/form.rb in motion-prime-0.8.1
- old
+ new
@@ -7,10 +7,10 @@
# On render, each field will be added to parent screen.
# == Basic Sample
# class MyLoginForm < MotionPrime::FormSection
# field :email, label: { text: 'E-mail' }, input: { placeholder: 'Your E-mail' }
- # field :submit, title: 'Login', type: :submit
+ # field :submit, button: { title: 'Login' }, type: :submit, action: :on_submit
#
# def on_submit
# email = view("email:input").text
# puts "Submitted email: #{email}"
# end
\ No newline at end of file