Class: Avo::Sidebar::ItemSwitcherComponent
Instance Attribute Summary
#item
Instance Method Summary
collapse
#collapsable, #collapsed, #initialize, #items, #key
Instance Method Details
#dashboard ⇒ Object
8
9
10
|
# File 'app/components/avo/sidebar/item_switcher_component.rb', line 8
def dashboard
item.parsed_dashboard
end
|
#render? ⇒ Boolean
12
13
14
|
# File 'app/components/avo/sidebar/item_switcher_component.rb', line 12
def render?
item.visible?
end
|
#resource ⇒ Object
4
5
6
|
# File 'app/components/avo/sidebar/item_switcher_component.rb', line 4
def resource
item.parsed_resource
end
|