Class: PhlexKit::AlertDialogDescription
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::AlertDialogDescription
- Defined in:
- app/components/phlex_kit/alert_dialog/alert_dialog_description.rb
Overview
Body text of a PhlexKit::AlertDialog. See alert_dialog.rb.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ AlertDialogDescription
constructor
A new instance of AlertDialogDescription.
- #view_template(&block) ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ AlertDialogDescription
Returns a new instance of AlertDialogDescription.
4 5 6 |
# File 'app/components/phlex_kit/alert_dialog/alert_dialog_description.rb', line 4 def initialize(**attrs) @attrs = attrs end |
Instance Method Details
#view_template(&block) ⇒ Object
8 9 10 |
# File 'app/components/phlex_kit/alert_dialog/alert_dialog_description.rb', line 8 def view_template(&block) p(**mix({ class: "pk-alert-dialog-description" }, @attrs), &block) end |