Class: Ui::AlertDialog::Component

Inherits:
BaseComponent
  • Object
show all
Defined in:
lib/uikit_rails/templates/components/alert_dialog/component.rb

Overview

Confirmation dialog that requires an explicit action to dismiss. Unlike Dialog, there is no close button — the user must choose cancel or confirm.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**html_attrs) ⇒ Component

Returns a new instance of Component.



17
18
19
20
# File 'lib/uikit_rails/templates/components/alert_dialog/component.rb', line 17

def initialize(**html_attrs)
  @html_attrs = html_attrs
  super()
end

Instance Attribute Details

#html_attrsObject (readonly)

Returns the value of attribute html_attrs.



15
16
17
# File 'lib/uikit_rails/templates/components/alert_dialog/component.rb', line 15

def html_attrs
  @html_attrs
end