Sha256: 31d946d6c7ec71adebaf122474831dfb0218daef1159d823168207b74e01df7b
Contents?: true
Size: 930 Bytes
Versions: 8
Compression:
Stored size: 930 Bytes
Contents
module ProMotion module TableScreenModule include PlainTable include SearchableTable include RefreshableTable include ScreenModule def update_table_data self.update_table_view_data(table_data) end module TableClassMethods # Searchable def searchable(params={}) @searchable_params = params @searchable = true end def get_searchable_params @searchable_params ||= nil end def get_searchable @searchable ||= false end # Refreshable def refreshable(params = {}) @refreshable_params = params @refreshable = true end def get_refreshable @refreshable ||= false end def get_refreshable_params @refreshable_params ||= nil end end def self.included(base) base.extend(ClassMethods) base.extend(TableClassMethods) end end end
Version data entries
8 entries across 8 versions & 1 rubygems