Class: ActiveAdmin::Views::IndexList
- 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.
- #tag_name ⇒ Object
Instance Method Details
#build(index_classes) ⇒ Object
Builds the links for presenting different index views to the user
14 15 16 17 18 19 20 21 |
# File 'lib/active_admin/views/components/index_list.rb', line 14 def build(index_classes) add_class "index-button-group index-list" unless current_filter_search_empty? index_classes.each do |index_class| build_index_list(index_class) end end end |
#tag_name ⇒ Object
7 8 9 |
# File 'lib/active_admin/views/components/index_list.rb', line 7 def tag_name "div" end |