Class: PhlexKit::DrawerDescription
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::DrawerDescription
- Defined in:
- app/components/phlex_kit/drawer/drawer_description.rb
Overview
See drawer.rb.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ DrawerDescription
constructor
A new instance of DrawerDescription.
- #view_template ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ DrawerDescription
Returns a new instance of DrawerDescription.
4 |
# File 'app/components/phlex_kit/drawer/drawer_description.rb', line 4 def initialize(**attrs) = (@attrs = attrs) |
Instance Method Details
#view_template ⇒ Object
5 |
# File 'app/components/phlex_kit/drawer/drawer_description.rb', line 5 def view_template(&) = p(**mix({ class: "pk-drawer-description" }, @attrs), &) |