Sha256: 1ec6c6e3a49531a3070a6bfb2e77a0dcadbeafef21e28fdd3476e9071c5fabd6
Contents?: true
Size: 1.41 KB
Versions: 1
Compression:
Stored size: 1.41 KB
Contents
# ProMotion-formotion ProMotion Formotion Screen Made a gem from the ProMotion formotion example at https://github.com/clearsightstudio/ProMotion#using-your-own-uiviewcontroller ## Setup Add this gem to your project, in Gemfile `gem 'ProMotion-formotion'`: ``` gem "rake" gem 'ProMotion', :git => 'https://github.com/clearsightstudio/ProMotion.git' gem 'formotion', :git => 'https://github.com/clayallsopp/formotion.git' gem 'ProMotion-formotion' ``` then `bundle update`. __Important__: At the moment you need to use the git versions of the ProMotion and formotion Gems for a working App. Please add `app.detect_dependencies = false` to your Rakefile in Motion::Project::App.setup as we use motion-require. Create a Formotion Screen with: ```ruby class LoginScreen < PM::FormotionScreen title "Login" def on_submit(_form) end def table_data { sections: [{ title: "Credentials", rows: [{ title: "Email", key: :email, placeholder: "example@kohactive.com", type: :string, auto_correction: :no, auto_capitalization: :none }, { title: "Password", key: :password, placeholder: "", type: :string, auto_correction: :no, auto_capitalization: :none }, ] }] } end end ``` ## Example See under https://github.com/rheoli/formotion-example.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ProMotion-formotion-0.1.4 | README.md |