Sha256: 47a8a3b81a33627e1786a908461639b2e58aaa00e0cafebdf7121604e3b4aa20

Contents?: true

Size: 353 Bytes

Versions: 9

Compression:

Stored size: 353 Bytes

Contents

module MotionPrime
  module TableSectionRefreshMixin
    def add_pull_to_refresh(&block)
      table_view.addPullToRefreshWithActionHandler(block)
      screen.setup table_view.pullToRefreshView, styles: [:base_pull_to_refresh]
    end

    def fisnish_pull_to_refresh
      reload_data
      table_view.pullToRefreshView.stopAnimating
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
motion-prime-0.2.0 motion-prime/sections/table/refresh_mixin.rb
motion-prime-0.1.7 motion-prime/sections/table/refresh_mixin.rb
motion-prime-0.1.6 motion-prime/sections/table/refresh_mixin.rb
motion-prime-0.1.5 motion-prime/sections/table/refresh_mixin.rb
motion-prime-0.1.4 motion-prime/sections/table/refresh_mixin.rb
motion-prime-0.1.3 motion-prime/sections/table/refresh_mixin.rb
motion-prime-0.1.2 motion-prime/sections/table/refresh_mixin.rb
motion-prime-0.1.1 motion-prime/sections/table/refresh_mixin.rb
motion-prime-0.1.0 motion-prime/sections/table/refresh_mixin.rb