Class: Ui::AlertDialog::Component
- Inherits:
-
BaseComponent
- Object
- BaseComponent
- Ui::AlertDialog::Component
- 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
-
#html_attrs ⇒ Object
readonly
Returns the value of attribute html_attrs.
Instance Method Summary collapse
-
#initialize(**html_attrs) ⇒ Component
constructor
A new instance of Component.
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_attrs ⇒ Object (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 |