Class: ActiveAdmin::Views::IndexList
- Includes:
- Helpers::Collection
- Defined in:
- lib/active_admin/views/components/index_list.rb
Overview
Renders a collection of index views available to the resource as a list with a separator
Instance Method Summary collapse
-
#build(index_classes) ⇒ Object
Builds the links for presenting different index views to the user.
- #default_class_name ⇒ Object
- #tag_name ⇒ Object
Methods included from Helpers::Collection
#collection_is_empty?, #collection_size
Instance Method Details
#build(index_classes) ⇒ Object
Builds the links for presenting different index views to the user
25 26 27 28 29 30 31 |
# File 'lib/active_admin/views/components/index_list.rb', line 25 def build(index_classes) unless current_filter_search_empty? index_classes.each do |index_class| build_index_list(index_class) end end end |
#default_class_name ⇒ Object
14 15 16 |
# File 'lib/active_admin/views/components/index_list.rb', line 14 def default_class_name "indexes table_tools_segmented_control" end |
#tag_name ⇒ Object
18 19 20 |
# File 'lib/active_admin/views/components/index_list.rb', line 18 def tag_name "ul" end |