Class: ActiveAdmin::Views::SidebarSection

Inherits:
Panel show all
Defined in:
lib/active_admin/views/components/sidebar_section.rb

Instance Method Summary collapse

Methods inherited from Panel

#add_child

Methods inherited from Component

#initialize, #tag_name

Constructor Details

This class inherits a constructor from ActiveAdmin::Component

Instance Method Details

#build(section) ⇒ Object

Takes a ActiveAdmin::Sidebar::Section instance



8
9
10
11
12
13
# File 'lib/active_admin/views/components/sidebar_section.rb', line 8

def build(section)
  @section = section
  super(@section.title, :icon => @section.icon)
  self.id = @section.id
  build_sidebar_content
end