Sha256: 8f1db770f502a92dbf7f3e2fc305f53ce5553325de02a0d9634c150518679200

Contents?: true

Size: 643 Bytes

Versions: 4

Compression:

Stored size: 643 Bytes

Contents

module ProMotion
  module TableScreenModule
    include MotionTable::PlainTable
    include MotionTable::SearchableTable
    include ProMotion::ScreenModule
    
    def update_table_data
      self.update_table_view_data(table_data)
    end

    module TableClassMethods
      def searchable(params={})
        @searchable_params = params
        @searchable = true
      end

      def get_searchable_params
        @searchable_params ||= nil
      end

      def get_searchable
        @searchable ||= false
      end
    end
    def self.included(base)
      base.extend(ClassMethods)
      base.extend(TableClassMethods)
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ProMotion-0.5.2 lib/ProMotion/screens/_table_screen_module.rb
ProMotion-0.5.0 lib/ProMotion/screens/_table_screen_module.rb
ProMotion-0.4.1 lib/ProMotion/screen/_table_screen_module.rb
ProMotion-0.4.0 lib/ProMotion/screen/_table_screen_module.rb