Class: PhlexKit::SidebarFooter
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::SidebarFooter
- Defined in:
- app/components/phlex_kit/sidebar/sidebar_footer.rb
Overview
Bottom region of a PhlexKit::Sidebar (user identity + sign out). See sidebar.rb.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ SidebarFooter
constructor
A new instance of SidebarFooter.
- #view_template(&block) ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ SidebarFooter
Returns a new instance of SidebarFooter.
4 5 6 |
# File 'app/components/phlex_kit/sidebar/sidebar_footer.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_footer.rb', line 8 def view_template(&block) div(**mix({ class: "pk-sidebar-footer" }, @attrs), &block) end |