Class: Irelia::Dropdown::Component::DropdownTrigger
- Inherits:
-
Button::Component
- Object
- Button::Component
- Irelia::Dropdown::Component::DropdownTrigger
- Defined in:
- app/components/irelia/dropdown/component.rb
Instance Method Summary collapse
-
#initialize(**options) ⇒ DropdownTrigger
constructor
A new instance of DropdownTrigger.
Constructor Details
#initialize(**options) ⇒ DropdownTrigger
Returns a new instance of DropdownTrigger.
25 26 27 28 29 |
# File 'app/components/irelia/dropdown/component.rb', line 25 def initialize(**) [:html_options] ||= {} [:html_options]["data"] = { "action": "irelia-dropdown#toggle click@window->irelia-dropdown#hide" } super(**) end |