Class: Irelia::Modal::Component::ToggleButton
- Inherits:
-
Button::Component
- Object
- Button::Component
- Irelia::Modal::Component::ToggleButton
- Defined in:
- app/components/irelia/modal/component.rb
Instance Method Summary collapse
-
#initialize(**options) ⇒ ToggleButton
constructor
A new instance of ToggleButton.
Constructor Details
#initialize(**options) ⇒ ToggleButton
Returns a new instance of ToggleButton.
22 23 24 25 26 27 |
# File 'app/components/irelia/modal/component.rb', line 22 def initialize(**) [:html_options] ||= {} [:html_options]["data"] = { "action": "irelia-modal#open" } super(**) end |