Class: PhlexKit::AlertDialogFooter

Inherits:
BaseComponent show all
Defined in:
app/components/phlex_kit/alert_dialog/alert_dialog_footer.rb

Overview

Footer of a PhlexKit::AlertDialog (Cancel + the destructive submit). See alert_dialog.rb.

Instance Method Summary collapse

Methods inherited from BaseComponent

#on

Constructor Details

#initialize(**attrs) ⇒ AlertDialogFooter

Returns a new instance of AlertDialogFooter.



4
5
6
# File 'app/components/phlex_kit/alert_dialog/alert_dialog_footer.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_footer.rb', line 8

def view_template(&block)
  div(**mix({ class: "pk-alert-dialog-footer" }, @attrs), &block)
end