Class: Irelia::Modal::Component::ToggleButton

Inherits:
Button::Component
  • Object
show all
Defined in:
app/components/irelia/modal/component.rb

Instance Method Summary collapse

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(**options)
  options[:html_options] ||= {}
  options[:html_options]["data"] = { "action": "irelia-modal#open" }

  super(**options)
end