Class: UI::EmptyHeader
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::EmptyHeader
- Includes:
- EmptyHeaderBehavior
- Defined in:
- app/components/ui/empty_header.rb
Overview
EmptyHeader - Phlex implementation
Wraps the empty media, title, and description.
Instance Method Summary collapse
-
#initialize(classes: "", **attributes) ⇒ EmptyHeader
constructor
A new instance of EmptyHeader.
- #view_template(&block) ⇒ Object
Methods included from EmptyHeaderBehavior
#empty_header_classes, #empty_header_html_attributes
Constructor Details
#initialize(classes: "", **attributes) ⇒ EmptyHeader
Returns a new instance of EmptyHeader.
16 17 18 19 |
# File 'app/components/ui/empty_header.rb', line 16 def initialize(classes: "", **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#view_template(&block) ⇒ Object
21 22 23 |
# File 'app/components/ui/empty_header.rb', line 21 def view_template(&block) div(**empty_header_html_attributes.merge(@attributes), &block) end |