Class: UI::AlertDialogFooter
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::AlertDialogFooter
- Includes:
- AlertDialogFooterBehavior
- Defined in:
- app/components/ui/alert_dialog_footer.rb
Overview
Footer - Phlex implementation
Footer section with action buttons for the alert dialog. Uses AlertDialogFooterBehavior module for shared styling logic.
Instance Method Summary collapse
-
#initialize(classes: "", **attributes) ⇒ AlertDialogFooter
constructor
A new instance of AlertDialogFooter.
- #view_template(&block) ⇒ Object
Methods included from AlertDialogFooterBehavior
#alert_dialog_footer_base_classes, #alert_dialog_footer_classes, #alert_dialog_footer_html_attributes
Constructor Details
#initialize(classes: "", **attributes) ⇒ AlertDialogFooter
Returns a new instance of AlertDialogFooter.
18 19 20 21 |
# File 'app/components/ui/alert_dialog_footer.rb', line 18 def initialize(classes: "", **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#view_template(&block) ⇒ Object
23 24 25 26 27 |
# File 'app/components/ui/alert_dialog_footer.rb', line 23 def view_template(&block) div(**) do yield if block_given? end end |