Class: UI::AlertDialogCancel
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::AlertDialogCancel
- Includes:
- AlertDialogCancelBehavior
- Defined in:
- app/components/ui/alert_dialog_cancel.rb
Overview
Cancel - Phlex implementation
Cancel button for the alert dialog. Wraps the Button component with alert dialog close action.
Instance Method Summary collapse
-
#initialize(variant: :outline, size: :default, classes: "", **attributes) ⇒ AlertDialogCancel
constructor
A new instance of AlertDialogCancel.
- #view_template(&block) ⇒ Object
Methods included from AlertDialogCancelBehavior
#alert_dialog_cancel_button_data_attributes, #alert_dialog_cancel_data_attributes, #merged_alert_dialog_cancel_data_attributes
Constructor Details
#initialize(variant: :outline, size: :default, classes: "", **attributes) ⇒ AlertDialogCancel
Returns a new instance of AlertDialogCancel.
17 18 19 20 21 22 |
# File 'app/components/ui/alert_dialog_cancel.rb', line 17 def initialize(variant: :outline, size: :default, classes: "", **attributes) @variant = variant @size = size @classes = classes @attributes = attributes end |