Class: DataTableSeachDelegate
- Defined in:
- lib/project/pro_motion/data_table_search_delegate.rb
Instance Attribute Summary collapse
-
#parent ⇒ Object
Returns the value of attribute parent.
Instance Method Summary collapse
-
#updateSearchResultsForSearchController(search_controller) ⇒ Object
UISearchResultsUpdating protocol method.
- #willDismissSearchController(search_controller) ⇒ Object
-
#willPresentSearchController(search_controller) ⇒ Object
UISearchControllerDelegate methods.
Instance Attribute Details
#parent ⇒ Object
Returns the value of attribute parent.
2 3 4 |
# File 'lib/project/pro_motion/data_table_search_delegate.rb', line 2 def parent @parent end |
Instance Method Details
#updateSearchResultsForSearchController(search_controller) ⇒ Object
UISearchResultsUpdating protocol method
15 16 17 18 |
# File 'lib/project/pro_motion/data_table_search_delegate.rb', line 15 def updateSearchResultsForSearchController(search_controller) search_string = search_controller.searchBar.text parent.dt_searchDisplayController(search_controller, shouldReloadTableForSearchString: search_string) if @_data_table_searching end |
#willDismissSearchController(search_controller) ⇒ Object
10 11 12 |
# File 'lib/project/pro_motion/data_table_search_delegate.rb', line 10 def willDismissSearchController(search_controller) parent.dt_searchDisplayControllerWillEndSearch(search_controller) end |
#willPresentSearchController(search_controller) ⇒ Object
UISearchControllerDelegate methods
6 7 8 |
# File 'lib/project/pro_motion/data_table_search_delegate.rb', line 6 def willPresentSearchController(search_controller) parent.dt_searchDisplayControllerWillBeginSearch(search_controller) end |