Module: Rails::AddOns::TableHelper
- Defined in:
- app/helpers/rails/add_ons/table_helper.rb
Defined Under Namespace
Classes: SortLink
Instance Method Summary collapse
- #collection_table(options = {}, &block) ⇒ Object
- #resource_table(options = {}, &block) ⇒ Object
- #sort_link(column_name, title, options = {}) ⇒ Object
Instance Method Details
#collection_table(options = {}, &block) ⇒ Object
4 5 6 |
# File 'app/helpers/rails/add_ons/table_helper.rb', line 4 def collection_table( = {}, &block) Component::CollectionTable.new(self, , &block).perform end |
#resource_table(options = {}, &block) ⇒ Object
8 9 10 |
# File 'app/helpers/rails/add_ons/table_helper.rb', line 8 def resource_table( = {}, &block) Component::ResourceTable.new(self, , &block).perform end |
#sort_link(column_name, title, options = {}) ⇒ Object
12 13 14 15 |
# File 'app/helpers/rails/add_ons/table_helper.rb', line 12 def sort_link(column_name, title, = {}) return title if === false SortLink.new(self, column_name, title, ).perform end |