Class: UI::AlertDescription
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::AlertDescription
- Includes:
- AlertDescriptionBehavior
- Defined in:
- app/components/ui/alert_description.rb
Overview
Alert Description - Phlex implementation
Description text for an alert component.
Instance Method Summary collapse
-
#initialize(classes: "", **attributes) ⇒ AlertDescription
constructor
A new instance of AlertDescription.
- #view_template(&block) ⇒ Object
Methods included from AlertDescriptionBehavior
#alert_description_base_classes, #alert_description_classes, #alert_description_html_attributes, #render_alert_description
Constructor Details
#initialize(classes: "", **attributes) ⇒ AlertDescription
Returns a new instance of AlertDescription.
16 17 18 19 |
# File 'app/components/ui/alert_description.rb', line 16 def initialize(classes: "", **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#view_template(&block) ⇒ Object
21 22 23 24 25 |
# File 'app/components/ui/alert_description.rb', line 21 def view_template(&block) div(**alert_description_html_attributes) do yield if block_given? end end |