Class: Avo::Sidebar::SectionComponent

Inherits:
BaseItemComponent show all
Defined in:
app/components/avo/sidebar/section_component.rb

Instance Attribute Summary

Attributes inherited from BaseItemComponent

#item

Instance Method Summary collapse

Methods inherited from BaseItemComponent

#collapsable, #collapsed, #initialize, #items, #key

Constructor Details

This class inherits a constructor from Avo::Sidebar::BaseItemComponent

Instance Method Details

#iconObject



4
5
6
7
8
# File 'app/components/avo/sidebar/section_component.rb', line 4

def icon
  return nil if item.icon.nil?

  item.icon
end