Class: UI::EmptyDescription
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::EmptyDescription
- Includes:
- EmptyDescriptionBehavior
- Defined in:
- app/components/ui/empty_description.rb
Overview
EmptyDescription - Phlex implementation
Displays the description of the empty state.
Instance Method Summary collapse
-
#initialize(classes: "", **attributes) ⇒ EmptyDescription
constructor
A new instance of EmptyDescription.
- #view_template(&block) ⇒ Object
Methods included from EmptyDescriptionBehavior
#empty_description_classes, #empty_description_html_attributes
Constructor Details
#initialize(classes: "", **attributes) ⇒ EmptyDescription
Returns a new instance of EmptyDescription.
12 13 14 15 |
# File 'app/components/ui/empty_description.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_description.rb', line 17 def view_template(&block) p(**empty_description_html_attributes.merge(@attributes), &block) end |