mirror of
https://github.com/zhigang1992/ProMotion.git
synced 2026-05-25 20:05:20 +08:00
Allow the parent VC to tell if the current data is being filtered or not.
This commit is contained in:
@@ -38,6 +38,11 @@ module ProMotion
|
||||
table_view
|
||||
end
|
||||
|
||||
def is_searching?
|
||||
return true if self.class.respond_to?(:get_searchable) && @promotion_table_data.filtered == true
|
||||
false
|
||||
end
|
||||
|
||||
def update_table_view_data(data)
|
||||
@promotion_table_data.data = data
|
||||
table_view.reloadData
|
||||
|
||||
Reference in New Issue
Block a user