module TableClassMethods

Public Instance Methods

get_indexable() click to toggle source
# File lib/ProMotion/table/table_class_methods.rb, line 57
def get_indexable
  @indexable ||= false
end
get_indexable_params() click to toggle source
# File lib/ProMotion/table/table_class_methods.rb, line 61
def get_indexable_params
  @indexable_params ||= nil
end
get_longpressable() click to toggle source
# File lib/ProMotion/table/table_class_methods.rb, line 71
def get_longpressable
  @longpressable ||= false
end
get_longpressable_params() click to toggle source
# File lib/ProMotion/table/table_class_methods.rb, line 75
def get_longpressable_params
  @longpressable_params ||= nil
end
get_refreshable() click to toggle source
# File lib/ProMotion/table/table_class_methods.rb, line 43
def get_refreshable
  @refreshable ||= false
end
get_refreshable_params() click to toggle source
# File lib/ProMotion/table/table_class_methods.rb, line 47
def get_refreshable_params
  @refreshable_params ||= nil
end
get_row_height() click to toggle source
# File lib/ProMotion/table/table_class_methods.rb, line 19
def get_row_height
  @row_height ||= nil
end
get_searchable() click to toggle source
# File lib/ProMotion/table/table_class_methods.rb, line 33
def get_searchable
  @searchable ||= false
end
get_searchable_params() click to toggle source
# File lib/ProMotion/table/table_class_methods.rb, line 29
def get_searchable_params
  @searchable_params ||= nil
end
indexable(params = {}) click to toggle source

Indexable

# File lib/ProMotion/table/table_class_methods.rb, line 52
def indexable(params = {})
  @indexable_params = params
  @indexable = true
end
longpressable(params = {}) click to toggle source

Longpressable

# File lib/ProMotion/table/table_class_methods.rb, line 66
def longpressable(params = {})
  @longpressable_params = params
  @longpressable = true
end
refreshable(params = {}) click to toggle source

Refreshable

# File lib/ProMotion/table/table_class_methods.rb, line 38
def refreshable(params = {})
  @refreshable_params = params
  @refreshable = true
end
row_height(height, args={}) click to toggle source
# File lib/ProMotion/table/table_class_methods.rb, line 6
def row_height(height, args={})
  if height == :auto
    if UIDevice.currentDevice.systemVersion.to_f < 8.0
      height = args[:estimated] || 44.0
      mp "Using `row_height :auto` is not supported in iOS 7 apps. Setting to #{height}.", force_color: :yellow
    else
      height = UITableViewAutomaticDimension
    end
  end
  args[:estimated] ||= height unless height == UITableViewAutomaticDimension
  @row_height = { height: height, estimated: args[:estimated] || 44.0 }
end
searchable(params={}) click to toggle source

Searchable

# File lib/ProMotion/table/table_class_methods.rb, line 24
def searchable(params={})
  @searchable_params = params
  @searchable = true
end
table_style() click to toggle source
# File lib/ProMotion/table/table_class_methods.rb, line 2
def table_style
  UITableViewStylePlain
end