Class: UI::DrawerHeader
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::DrawerHeader
- Includes:
- DrawerHeaderBehavior
- Defined in:
- app/components/ui/drawer_header.rb
Instance Method Summary collapse
-
#initialize(classes: nil, **attributes) ⇒ DrawerHeader
constructor
A new instance of DrawerHeader.
- #view_template(&block) ⇒ Object
Methods included from DrawerHeaderBehavior
#drawer_header_base_classes, #drawer_header_classes, #drawer_header_html_attributes
Constructor Details
#initialize(classes: nil, **attributes) ⇒ DrawerHeader
Returns a new instance of DrawerHeader.
6 7 8 9 |
# File 'app/components/ui/drawer_header.rb', line 6 def initialize(classes: nil, **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#view_template(&block) ⇒ Object
11 12 13 14 15 |
# File 'app/components/ui/drawer_header.rb', line 11 def view_template(&block) div(**drawer_header_html_attributes) do yield if block_given? end end |