Class: UI::EmptyTitle
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::EmptyTitle
- Includes:
- EmptyTitleBehavior
- Defined in:
- app/components/ui/empty_title.rb
Overview
EmptyTitle - Phlex implementation
Displays the title of the empty state.
Instance Method Summary collapse
-
#initialize(classes: "", **attributes) ⇒ EmptyTitle
constructor
A new instance of EmptyTitle.
- #view_template(&block) ⇒ Object
Methods included from EmptyTitleBehavior
#empty_title_classes, #empty_title_html_attributes
Constructor Details
#initialize(classes: "", **attributes) ⇒ EmptyTitle
Returns a new instance of EmptyTitle.
12 13 14 15 |
# File 'app/components/ui/empty_title.rb', line 12 def initialize(classes: "", **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#view_template(&block) ⇒ Object
17 18 19 |
# File 'app/components/ui/empty_title.rb', line 17 def view_template(&block) h3(**empty_title_html_attributes.merge(@attributes), &block) end |