Class: PhlexKit::SidebarGroup

Inherits:
BaseComponent show all
Defined in:
app/components/phlex_kit/sidebar/sidebar_group.rb

Overview

A cluster of menu items within SidebarContent. See sidebar.rb.

Instance Method Summary collapse

Methods inherited from BaseComponent

#on

Constructor Details

#initialize(**attrs) ⇒ SidebarGroup

Returns a new instance of SidebarGroup.



4
5
6
# File 'app/components/phlex_kit/sidebar/sidebar_group.rb', line 4

def initialize(**attrs)
  @attrs = attrs
end

Instance Method Details

#view_template(&block) ⇒ Object



8
9
10
# File 'app/components/phlex_kit/sidebar/sidebar_group.rb', line 8

def view_template(&block)
  div(**mix({ class: "pk-sidebar-group" }, @attrs), &block)
end