Add sliding action cells support to MotionPrime.
Add this line to your application's Gemfile:
gem 'prime_sliding_action'
class MyCellSection < Prime::Section
add_sliding_action_button :like,
text_color: :white,
background_color: :red,
title: 'Like',
action: :action_like
def action_like
puts "Like!"
end
end
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request
Hope, you'll enjoy PrimeSlidingAction!
Cheers, Droid Labs.