Class: ActiveAdmin::Views::IndexAsTable
- Defined in:
- lib/active_admin/views/index_as_table.rb
Defined Under Namespace
Classes: IndexTableFor
Instance Method Summary collapse
Methods inherited from Component
Constructor Details
This class inherits a constructor from ActiveAdmin::Component
Instance Method Details
#build(page_config, collection) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'lib/active_admin/views/index_as_table.rb', line 6 def build(page_config, collection) = { :id => active_admin_config.plural_resource_name.underscore, :sortable => true, :class => "index_table", :i18n => active_admin_config.resource } table_for collection, do |t| instance_exec(t, &page_config.block) end end |
#table_for(*args, &block) ⇒ Object
19 20 21 |
# File 'lib/active_admin/views/index_as_table.rb', line 19 def table_for(*args, &block) insert_tag IndexTableFor, *args, &block end |