Class: PhlexKit::AlertDialogCancel
- Inherits:
-
BaseComponent
- Object
- Phlex::HTML
- BaseComponent
- PhlexKit::AlertDialogCancel
- Defined in:
- app/components/phlex_kit/alert_dialog/alert_dialog_cancel.rb
Overview
The dismiss button in a PhlexKit::AlertDialog footer — an outline PhlexKit::Button wired to the controller's #dismiss (removes the modal). See alert_dialog.rb.
Instance Method Summary collapse
-
#initialize(**attrs) ⇒ AlertDialogCancel
constructor
A new instance of AlertDialogCancel.
- #view_template(&block) ⇒ Object
Methods inherited from BaseComponent
Constructor Details
#initialize(**attrs) ⇒ AlertDialogCancel
Returns a new instance of AlertDialogCancel.
5 6 7 |
# File 'app/components/phlex_kit/alert_dialog/alert_dialog_cancel.rb', line 5 def initialize(**attrs) @attrs = attrs end |