Module: ProMotion::Table
- Included in:
- DataTable
- Defined in:
- lib/project/pro_motion/table.rb,
lib/project/pro_motion/data_table_searchable.rb
Overview
This is duplicated from ProMotion in order to be call make_data_table_searchable instead of make_searchable
Defined Under Namespace
Modules: Searchable
Instance Method Summary collapse
Instance Method Details
#set_up_searchable ⇒ Object
13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/project/pro_motion/table.rb', line 13 def set_up_searchable if self.class.respond_to?(:get_searchable) && self.class.get_searchable if self.is_a?(ProMotion::DataTableScreen) self.make_data_table_searchable(content_controller: self, search_bar: self.class.get_searchable_params) else self.make_searchable(content_controller: self, search_bar: self.class.get_searchable_params) end if self.class.get_searchable_params[:hide_initially] self.tableView.contentOffset = CGPointMake(0, self.searchDisplayController.searchBar.frame.size.height) end end end |